[jcifs] Logon dialog after authentication fails

Blank, Gregory gregory.blank at citigroup.com
Fri Sep 30 21:41:23 GMT 2005


Hi,

I am running JCIFs 1.2.4 under Tomcat 5.5 with logonShare option.
The client is IE 6.0 on a machine which is not a member of the target domain.

If the IE security option for intranet is set to auto logon, IE sends the local id/password and authentication
fails as expected.

What is not expected is that IE displays a blank page instead of giving me a logon dialog.
Tomcat's access log shows 401, 401 and then 200 with no length.

Now, when I commented out line 208 in NtlmHttpFilter
----->        resp.setContentLength(0); /* Marcel Feb-15-2005 */
everything started working: IE gets 401 as the 3rd response and shows the logon dialog.

It looks like Tomcat overrides 401 when response length is 0.  

So my question is: why was this line (208 in NtlmHttpFilter) put there in the first place?

Thanks.

Gregory


More information about the jcifs mailing list