[jcifs] Re: NtlmHttpFilter: GUEST sometimes replaces username specified in web.xml due to session deserialization

Michael B Allen mba2000 at ioplex.com
Fri Aug 19 17:49:44 GMT 2005


On Thu, 7 Jul 2005 13:08:52 +0000 (UTC)
Peter McKenzie <petermcke at gmail.com> wrote:

> Peter McKenzie  writes:
> 
> > Workaround:
> > 
> > One workaround is to clear out the session information in the tomcat work
> > directory called SESSIONS.ser (assuming you have no other use for it).
> > Alternatively if the session information is older than your session timeout by
> > the time the tomcat server is restarted there will be no problem. For example,
> > in our case, waiting 30 minutes solved the problem too but did not make anyone
> > happy.
> > 
> 
> See the post below for the same issue and a nice workaround:
> http://lists.samba.org/archive/jcifs/2005-March/004807.html
> 
> - Peter

I have made a change that might rectify this problem. The
DEFAULT_{DOMAIN,USERNAME,PASSWORD} attributes are no longer statically
initialized. They will be initialized when they are first accessed using
an initDefaults() method. This may or may not be sufficent to permit
the filter to initialize Config with proper values from the web.xml as
it has not been tested but existing behavior should be preserved.

Mike


More information about the jcifs mailing list