[jcifs] Problems with ServletExec

Allen, Michael B (RSCH) Michael_B_Allen at ml.com
Thu Aug 22 10:05:30 EST 2002


Please see the Note at the top of the NTLM HTTP doc:

http://jcifs.samba.org/src/docs/ntlmhttpauth.html

I'm not familar with "SevletExec" but you may need to make adjustments. If so
read the last part on the same page about how NTLM HTTP Authentication
works. Maybe you can figure out a work around.

> -----Original Message-----
> From:	Müller Jens [SMTP:Jens.Mueller at dbv-winterthur.de]
> Sent:	Wednesday, August 21, 2002 4:53 AM
> To:	'jcifs at samba.org'
> Subject:	[jcifs] Problems with ServletExec
> 
> Hi,
> 
> I've got problems by running jcifs under servletExec 4.1.
> The server returns an invalid answer. It crashes, when the buffer will be
> flused.
> Maybe it's an error in the Response-Implementation of ServletExec.
> 
> With Resin and Tomcat it works fine.
> Does anyone have an idea, what I can do?
> 
> ---
> NtlmHttpSession.java
> logon(...)
> ...
> resp.reset();
> resp.setContentLength(0);
> resp.setHeader("WWW-Authenticate", "NTLM " + msg);
> resp.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
> >> resp.flushBuffer(); <<
> ...
> ---
> 
> thanx
> Jens Mueller




More information about the jcifs mailing list