Does JBossWS support NTLM?

Solution Unverified - Updated -

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 4.x
    • 5.x

Issue

  • When we call an external web service which requires NTLM authentication, got error "HTTP Error 401.2 - Unauthorized: Access is denied due to server configuration.".
  • Is there any special setup I need to do in order to support NTLM Authentication?

Resolution

The actual call is made through JBoss Remoting and NTLM is a property of the remoting connection so that's where it would potentially happen. JBossWS itself is unaware of it. However, this feature does not currently exist in Remoting. There are two JIRAs requesting this feature, but it has not been implemented and as JBoss EAP 5 is in maintenance support will likely never be implemented: (JBREM-344 is an underlying dependency of JBWS-731)

The usual solution would be to to configure a proxy such as http://ntlmaps.sourceforge.net/. Then you can specify use of your proxy by adding command line parameters to your run script such as:

java -Dhttp.proxyHost=localhost -Dhttp.proxyPort=8888

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.