[jcifs] NtlmHttpFilter issues.
shibu.basheer at emera.com
Thu Mar 23 17:58:54 GMT 2006
After much research, I managed to get NtlmHttpFilter working in tomcat.
Here is what I did:
1. Had to use appropriate jcifs.smb.client.(domain, username, and
2. Stick <Manager pathname=""/> in your application's <Context> in
Hope this helps.
From: jcifs-bounces+shibu.basheer=emera.com at lists.samba.org
[mailto:jcifs-bounces+shibu.basheer=emera.com at lists.samba.org] On Behalf
Of BASHEER, SHIBU
Sent: Wednesday, March 22, 2006 4:39 PM
To: jcifs at lists.samba.org
Subject: [jcifs] NtlmHttpFilter issues.
I am trying to authenticate my j2ee application using NtlmHttpFilter
using instructions from
I find that the authentication only works intermittently. After tomcat
server is restarted, the browser automatically authenticates into the
application as the way it should work, however, after a while if another
user tries to start a session, he is challenged with a password dialog.
It will works for the same user after a server reboot. Sometimes it may
allows one or two users to log in before it starts challenging for
password for new sessions. There are no errors reported in the logs,
and I do not know why the problem is intermittent. I have included my
settings in web.xml
Also, another maybe unrelated issue is that jcifs.smb.client.domain
requires the value to be less than 15 characters. Our domain is 15
characters long, so the NtlmHttpFilter seems to trim the last character
resulting in an UnknownHostException. For this reason, I am using
jcifs.http.NtlmHttpFilter which seems to work at least after a fresh
Any pointers will be much appreciated.
More information about the jcifs