[jcifs] Pass NTLM auth details to web service call?

Michael B Allen ioplex at gmail.com
Thu Apr 30 11:09:45 GMT 2009

On Thu, Apr 30, 2009 at 5:19 AM, Debbie J <ickle.deb at googlemail.com> wrote:
> Hello,
> I've just started using jcifs, and now have NTLM authentication working
> successfully for my site - via adding the jar and editing web.xml as
> necessary.
> However, now I need to be able to use the NTLM auth for connecting to other
> web services.
> My site is running under Tomcat, using Java backend and JSPs. A JSP calls a
> method on a backend Java class to in turn invoke the web services. The web
> service call needs to authenticate using NTLM, which should be the same
> details already authenticated using jcifs on navigating the site.
> I have successfully connected to the webservices via hard-coded login
> details, using HttpTransportProperties.Authenticator and setting this as
> part of the authentication options on the web service call. To correctly
> call the web services, I need to pass the authentication details of the user
> rather than this hard-coded version. How can that information be retrieved
> in order to be used in this way?

NTLM authentication never transmits the plaintext password so the
server side does not have access to "authentication details of the

What you're talking about is called "delegation". NTLM does not
support delegation. Kerberos does support delegation.


Michael B Allen
Java Active Directory Integration

More information about the jcifs mailing list