[jcifs] ArrayIndexOutOfBoundsException with Vista IE7 (jcifs 1.2.15)

Michael B Allen miallen at ioplex.com
Wed Feb 6 04:04:52 GMT 2008


Fixed in 1.2.18 to be released RSN.

If the server requires NTLMv2 and the lmCompatibility property is not set,
the following exception is thrown:

jcifs.util.transport.TransportException
jcifs.smb.SmbException: Encryption key length is not 8 as expected. This
could indicate that the server requires NTLMv2. JCIFS does not fully
support NTLMv2 but you can try setting jcifs.smb.lmCompatibility = 3.
        at jcifs.smb.SmbTransport.doConnect(SmbTransport.java:312)
        at jcifs.util.transport.Transport.run(Transport.java:240)
        at java.lang.Thread.run(Thread.java:534)

On Sat, 21 Jul 2007 16:59:09 -0400
Michael B Allen <miallen at ioplex.com> wrote:

> On Fri, 20 Jul 2007 02:42:01 -0700 (PDT)
> Dmitry Kandalov <kandalov at kg.ru> wrote:
> 
> > 
> > The problem was that Vista uses NTLMv2 authentication by default.
> > Workaround is here http://jcifs.samba.org/FAQ.html#ntlmv2
> > IMHO jcifs should print some kind of warning rather than failing with
> > ArrayIndexOutOfBoundsException.
> 
> I agree. I'll add this to The List.

-- 
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/


More information about the jcifs mailing list