It is actually not possible to use org.apache.http.impl.auth.win.CurrentWindowsCredentials to build a CXF client for a WCF service that is using NTLM authentication.
When accessing a web service, that is defined in C# using:
binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Ntlm;
it is possible to setup a CXF client with explicitly defined credential by using
but not with
(2) org.apache.http.impl.auth.win.CurrentWindowsCredentials (Maven GAV is org.apache.httpcomponents/winauth-jni /4.3.6)
When I use (2), I get a "Authorization loop detected on Conduit" exception.
The patch I made and described in the mailing list question is a quick-and-dirty solution for me to see, whether it would work from a technical perspective. The hard-coded
must be sth. thta can be passed to AsyncHTTPConduit.
If you need the WCF service or the Java code , it can be provided.