Menu

#608 NTLM with "UNKONWN" hostname causes authorization failure

v4.7.0
closed-fixed
nobody
None
5
2018-05-16
2015-11-24
Aman Yang
No

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";
    }

Discussion

  • Mickael Guessant

    • status: open --> pending-fixed
     
  • Mickael Guessant

    Fixed in svn, see commit 2415.
    Thanks for your feedback

     
  • Mickael Guessant

    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.