[jcifs] Re: Accessing protected share from Servlet

Michael B Allen mba2000 at ioplex.com
Tue Jan 30 20:36:31 GMT 2007


On Tue, 30 Jan 2007 20:05:39 +0000 (UTC)
David Webster <dave_web at yahoo.com> wrote:

> jcifs.smb.SmbAuthException: Invalid access to memory location.

This is the heart of the problem right here. This cryptic message is an
error artifically induced within the client code to indicate to the user
that the authentication challenge is not correct for the target server.

The NTLM protocol works as follows. The client asks the server for a
"challenge" which is just 8 bytes of random data. The challenge and
the password are munged together to produce password hashes. Thus the
password hashes are specific to the server being authenticated with.

The problem you're seeing occurs because you are authenticating with
one server (e.g. the domain controller) and then trying to use the old
challenge to authenitcate with a different server.

The bottom line is that you need to get NetworkExplorer working. Change
it a little and verify that it still works. Rinse and repeat.

Mike

-- 
Michael B Allen
PHP Active Directory SSO
http://www.ioplex.com/


More information about the jcifs mailing list