[jcifs] NtlmHttpFilter authentication failure

Klaus Steffan klaus.steffan at wugnet.de
Thu Jul 20 06:25:51 GMT 2006


I am using the NtlmHttpFilter (jcifs 1.1.8), the intranet web-application is
running on a WebSphere Application Server cluster on Solaris, the Domain
Controllers (jcifs.http.loadBalance=true) are Windows 2003 Server. Session
tracking is done with cookies, requests from the same client go to the same

The problem is that the authentication randomly fails for any user. A user
can authentication one time, and the next time the authentication fails with
     NtlmHttpFilter: DOMAIN\12345678: 0xC0000022: jcifs.smb.SmbAuthException:
Access is denied.

In the test environment everything works fine (usually) and the authentication
succeeds. The authentication in the live system (same application, users,
server OS, domain controller) regularly fails with "Access is denied" for
almost all users for the first time. When the users then reloads the page (F5)
the authentication is usually successful.

When we use the current jcifs version (1.2.9), the password dialog pops up in
the failure case (401: Unauthorized); the authentication then always fails,
even the user enters the correct credentials. The only solution is to close 
and restart the browser.

We can´t see any error info in the domain controller server.
The authentication problem occured the first time after installing a 
Microsoft patch on the domain controllers.

We use the following filter params:

I´ve read the postings and tried the following tips to resolve the problem, 
but none helped: 

1. Upgrading to JCIFS 1.2.9: same behaviour.
2. Preauthentication: define a username and password didn´t have any
3. Setting ssnLimit to 1: all (!) authentication attempts failed with
"Access is denied". 

Attached you´ll find logfiles for both a successful and
a failed authentication.

Btw: Another web-application which also uses the same jcifs filter with 
dentical params (and identical environment: Domain Controller...) doesn´t 
have any problems. 

Does anyone have an idea whats wrong ? 
Any help would be appreciated.



More information about the jcifs mailing list