NTLM with "UNKONWN" hostname causes authorization failure
Brought to you by:
mguessan
Exchange server in my company was configured that mail client in wrong hostname won't be authorized.
The method setCredentials in DavGatewayHttpClientFacade.java created NTcredential with hostname"UNKNOWN". It makes davmail can be authorized.
then i replaced the "UNKNOWN" with the station name got from InetAddress. and it works fine.
String stationName; try { InetAddress ia; ia = InetAddress.getLocalHost(); stationName = ia.getHostName(); } catch (UnknownHostException e) { stationName = "UNKNOWN"; }
Fixed in svn, see commit 2415.
Thanks for your feedback