[jcifs] SbmSession and webapp performance
Mark Orciuch
mark_orciuch at ngsltd.com
Wed Jul 2 06:27:17 EST 2003
I have implemented a form based NTLM authentication mechanism in my web
application:
...
jcifs.Config.setProperty("wins", "10.75.0.19");
NtlmPasswordAuthentication ntlm = new
NtlmPasswordAuthentication(ntdomain, username, password);
UniAddress dc;
try
{
dc = UniAddress.getByName(ntdomain, true);
SmbSession.logon(dc, ntlm);
return STATUS_OK;
}
catch (SmbException sae)
...
This does not make any sense but now my application performs slower after
the user is authenticated (this is done only once per session). If I unplug
the login process, performance is back to normal. Is the SbmSession somehow
bound to the user session? Is there a way to do SbmSession.logoff (I noticed
that method exists but is declared with package level access)?
I initially started with NTLM HTTP Authentication but that really made my
app run slow under Tomcat. I thought that form based authentication will do
the trick. I'm buffled...
BTW: I'm using Tomcat 3.3 and JDK 1.3.1_02.
Best regards,
Mark Orciuch - morciuch at apache.org
Jakarta Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/
More information about the jcifs
mailing list