[jcifs] Second user gets authentication prompt - inconsistent authentication results - "jcifs.smb.SmbAuthException: Access is denied"

Paul ANDERSON panderson at wta.dz
Mon Sep 3 09:38:48 GMT 2007


I get the same error as other people have reported, "0xC0000022: jcifs.smb.SmbAuthException: Access is denied", when a second user tries to get logged in on a 2nd client desktop.

"Inconsistent Authentication Results: Access Denied & Windows Enter password popping up"
http://lists.samba.org/archive/jcifs/2006-March/006034.html
(Problem reported with 1.2.7, 1.2.8)
NtlmHttpFilter: [DOMAIN]\\[USERNAME]: 0xC0000022:
> > jcifs.smb.SmbAuthException: Access is denied.
> > 
> > At the same time the Window's "Enter Network Password" box pops up.

"Re: Ntlm authentication prompts 2nd user - Win 2003"
http://www.archivum.info/jcifs@lists.samba.org/2005-07/msg00044.html
(Problem reported with 1.1.11, 1.2.0, 1.2.1, "Only jcifs 1.1.9 works fine")
signature verification failure
NtlmHttpFilter: softec\soltis: 0xC0000022: jcifs.smb.SmbAuthException: Access is denied.

WORKAROUND:
If I downgrade to jcifs version 1.1.9 as Ján Šoltís did, authentication for the second user is OK, but only on the second click on a filtered URL. On the first click, you see:
Socket closed: ****dc name***/*****dc IP****
java.net.SocketException: Socket closed
        at java.net.SocketInputStream.read(SocketInputStream.java:162)
        at jcifs.netbios.SessionServicePacket.readn(SessionServicePacket.java:70)
        at jcifs.netbios.SessionServicePacket.readPacketType(SessionServicePacket.java:84)
        at jcifs.netbios.SocketInputStream.read(SocketInputStream.java:74)
        at jcifs.netbios.SocketInputStream.read(SocketInputStream.java:40)
        at java.io.FilterInputStream.read(FilterInputStream.java:66)
        at java.io.PushbackInputStream.read(PushbackInputStream.java:122)
        at jcifs.smb.SmbTransport.run(SmbTransport.java:388)
        at java.lang.Thread.run(Thread.java:619)
09:13:07,846 ERROR [IndependentNtlmFilter:181] jcifs.smb.SmbException: Unverifiable signature: ****dc name***/*****dc IP****

I am running jcifs as part of Liferay 4.3.1 on Red Hat Linux 4, Tomcat 6, JDK6, with a Windows Server 2003 DC. But I've moved the filter's priority up and put debugs into it so I can configure it and see what it's doing pretty much independently of Liferay - though I will try running jcifs alone.
Anyone capable of fixing the 1.2.x code?


More information about the jcifs mailing list