axis2 client NTLM authentication

前端 未结 4 629
闹比i
闹比i 2020-12-20 02:29

I have an axis2 (v1.5.3) client that needs to do Kerberos/NTLM authentication with IIS. How can I do this? This is the code I have right now and it fails with 401 - un

4条回答
  •  生来不讨喜
    2020-12-20 02:36

    There is a problem with NTLM in AXIS2. It centres around the ntlm.setHost() method. The entry here is used as both WORKSTATION in the NTLM exchange and as Remote Host when AuthScope is created. This creates a Catch-22 situation where NTLM does not work using the HttpTransportProperties.Authenticator technique. You either get a "401 unauthorized" or you get a "No credentials found for < REALM>@HOST".

    See https://issues.apache.org/jira/browse/AXIS2-4595

    Peter

提交回复
热议问题