[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

        jcifs.Config.setProperty("wins", "");
        NtlmPasswordAuthentication ntlm = new
NtlmPasswordAuthentication(ntdomain, username, password);
        UniAddress dc;

            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

More information about the jcifs mailing list