[jcifs] Accessing SMB files and NTLM

Mike Streeton mike.streeton at ardentia.co.uk
Tue May 23 16:10:26 GMT 2006

   We are authenticating to the primary domain controller for the NTLM
authentication. We are supplying the same credentials to access the
By creating a new SmbFile(url,new

Does this help.

Many Thanks


www.ardentia.com the home of NetSearch

-----Original Message-----
From: Michael B Allen [mailto:mba2000 at ioplex.com] 
Sent: 23 May 2006 17:00
To: Mike Streeton
Cc: jcifs at lists.samba.org
Subject: Re: [jcifs] Accessing SMB files and NTLM

On Tue, 23 May 2006 11:30:37 +0100
"Mike Streeton" <mike.streeton at ardentia.co.uk> wrote:

> We are using NTLM for windows authentication to our web server, we
> also started using SMB files to access windows files. We seem to have
> issue that the NTLM works okay; SMB works okay, but SMB stops working
> when you connect via NTLM, it does not seem to start working again
> the app server is restarted? Any ideas, thanks

You can't use NTLM HTTP authenticated credentials to then access SMB
resources on a host other than the server with which you negotiated NTLM
authentication on behalf of the HTTP client. Specifically, the server
challenge is specific to the server with which you're performing NTLM

Otherewise, you question is vague and I don't know how to answer.


More information about the jcifs mailing list