"INFO: Failure authenticating with NTLM <any realm>@xxx.xxx.com"
I keep getting this error while trying to connect. Any idea ?
http://stackoverflow.com/questions/16649678/ntlm-authentication-scheme-selected-error
I personally haven't tried the autodiscover means of authentication, and haven't seen this error, so the two may be related....
being getting the same error on Linux. the program works sometimes, but not always. Not using audodiscover. it's weird that it works sometimes, but throwing error at other times
Log:
Oct 08, 2014 2:30:38 PM org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: Failure authenticating with NTLM
Oct 22, 2014 11:18:20 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: NTLM authentication scheme selected
Oct 22, 2014 11:18:21 AM org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: Failure authenticating with NTLM
I always getting this error, can somebody help me on it? I am working on windows 8 and I wrote codes like this : ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2); ExchangeCredentials credentials = new WebCredentials("username", "password", "domain"); or using WebCredentials("email", "password"); service.setUrl(new URI("https://xxx.hp.com/ews/exchange.asmx")); service.setCredentials(credentials); service.setTraceEnabled(true); But I can't access the server.
we solved this problem by switching to common-codec-1.7.jar from the 1.2 version and used a different fork of the project
@d10li any chance of submitting a pull request that would address this issue? What fork are you referring to?
@d10li I tried to change my common-codec.jar to version 1.2 , but it still not work.
@vboctor we are using this code base: https://github.com/casimirenslip/EWS-Java-API It use Apache Http Client 4.xxx. Code likely differs a lot already.
@Agileaq , we changed the .jar from 1.2 to 1.7, sounds like you changed to 1.2 instead
@d10li I've pinged @casimirenslip about the possibility of a pull request. I looked at his project history but unfortunately the changes were done as part of the initial commit, so it is not easy to review it or cherry-pick from it. Hopefully, we will figure out a way to consolidate.
I will try in the next weeks to update that. I made a new fork from the current code, so I can update to last http client librairies, which will solve NTLM problems.
Sorry to not do it faster but network team at my job are blocking a lot of sites, including github (don't know why and they don't know why although :( ) but will try.
@casimirenslip Okay, I will wait for the updates.
I made a PR with the update of httpClient 4.3.5 (last version).
Of course it will need further testing, however it works well with exchange 2010.
@Agileaq Maybe you can try to remove the parameter domain!