Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > NTLM authentication problem

Reply
Thread Tools

NTLM authentication problem

 
 
Jitesh Gangwani
Guest
Posts: n/a
 
      12-15-2004
Hi,
I am trying to a get a webpage which is on IIS server in different
domain secured by NTLM authentication. I am using
commons-httpclient-3.0-beta1 api to connect. I am not able to get
index.html page.

The NLTM api is giving following information messages
15-Dec-2004 16:01:46
org.apache.commons.httpclient.auth.AuthChallengePr ocessor
selectAuthScheme
INFO: ntlm authentication scheme selected
15-Dec-2004 16:01:46 org.apache.commons.httpclient.HttpMethodDirector
processWWWAuthChallenge
INFO: No credentials available for NTLM <any
realm>@www.maintenance.cws.pse1.rbsgrp.net:80



Following is the java code
NTCredentials creds = new
NTCredentials("USERNAME","PASSWORD","SERVER_IP_ADD RESS","CWSPSEHOLI");
HttpClient client = new HttpClient();
HttpMethod method = new GetMethod("http://servername/index.html");
AuthScope authscope = new
AuthScope("http://servername/index.html",80);
client.getState().setCredentials(authscope,creds);
int statusCode = client.executeMethod(method);
System.out.println("Status Code 1: " + statusCode);
String responseBody = method.getResponseBodyAsString();
System.out.println("******" + responseBody);
method.releaseConnection();

Can anyone please tell me what I am doing wrong.

Thanks

Jitesh
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ANN: python-ntlm - provides NTLM support, including an authenticationhandler for urllib2 Matthijs Python 0 12-10-2008 03:38 PM
Java - Integrated Windows Authentication - NTLM Authentication Forwarding Will Java 5 12-03-2005 01:00 AM
.NET HttpModule & NTLM Integrated Authentication Rob Mayo ASP .Net 2 01-26-2004 08:22 PM
WebControls and NTLM Authentication Carlos Fersura ASP .Net 0 11-03-2003 04:48 PM
Random NTLM/Keberos Authentication Problem Dave ASP .Net Security 0 07-31-2003 06:01 AM



Advertisments