Hello All,
I am trying to authenticate to MS Exchange as follows:
HttpClient client = new HttpClient();
NTCredentials creds = new NTCredentials(_username, _password,
"localhost", _domain);
// set credentials for connection
client.getState().setCredentials(new AuthScope(_exchangeServer,
AuthScope.ANY_PORT, AuthScope.ANY_REALM), creds);
GetMethod get = new GetMethod(prootPath);
get.setDoAuthentication(true);
status = client.executeMethod(get);
When I hit the server I get this back:
Jan 10, 2008 3:10:54 PM
org.apache.commons.httpclient.auth.AuthChallengeProcessor
selectAuthScheme
INFO: ntlm authentication scheme selected
Jan 10, 2008 3:10:54 PM
org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: Failure authenticating with NTLM <any
realm>@mail.exchangeserver.com:443
I had it working with my internal test server but now when trying to
connect to other servers I am getting Auth issues. Ideas?
Thanks!
Michael