Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

NTLM authentication with JaxWsDynamicClientFactory on Linux

$
0
0
Hello,

I'm using CXF 2.7.12 to generate a JaxWsDynamicClientFactory to call a
Windows 2008r2 web-service configured with NTLM authentication. I've used
the approach of creating a new PasswordAuthentication instance with user,
domain, and password and this approach works with JDK 1.6 and 1.7 on
Windows, but only 1.6 on Linux. Windows 2008 r2 added extended session
security requiring 128 encryption and it is unclear if the JDK
HttpURLConnection can support extended session security.

I've tried using jcifs for authentication (I know it should not be required)
and jcifs works to authenticate to retrieve the service wsdl, but generates
an exception when calling a service based on the client. I've also tried
using the AsyncHTTPConduit approach and this approach works with
JaxWsDynamicClientFactory, but only to call the web-service.
JaxWsDynamicsClientFactory fails with a http/401 when trying to retrieve the
wsdl to generate the client.

I've attempted creating a custom HTTPConduitConfigurer and adding to my bus,
but this approach appears to work only with Basic authentication. When I
set the AuthorizationPolicy object AuthType to negotiate I receive 401
errors and I don't see any reference to Negotiate auth in the headers of
request to retrieve the wsdl.

Is it possible to use JaxWsDynamicClientFactory to authenticate via NTLM to
retrieve the web-service wsdl?

Thanks,

Brennan

Viewing all articles
Browse latest Browse all 5648

Trending Articles