[jcifs] Re: Can't get NTLM HTTP Authentication to work

David Webster dave_web at yahoo.com
Tue Jan 30 22:03:19 GMT 2007


altiuser <alti_user <at> yahoo.com> writes:

> 
> I have the same problem but it is on Websphere. Did you find what is the 
cause
> or any resolution on this issue?
> 
> 



Here are a couple things to try:

1) "preauthenticating" with web.xml values or change the 
jcifs.smb.client.ssnLimit to 1. See the notes on W2K3 and SmbSigning in the 
NTLM doc.

    <init-param>
        <param-name>jcifs.smb.client.username</param-name>
        <param-value>user</param-value>
    </init-param>
    <init-param>
        <param-name>jcifs.smb.client.password</param-name>
        <param-value>pass</param-value>
    </init-param>

2) Try explicitly listing the domain controller

    <init-param>
        <param-name>jcifs.http.domainController</param-name>
        <param-value>xx.xx.xx.xx</param-value>
    </init-param>

3) Try lmCompatibility of 2

    <init-param>
        <param-name>jcifs.smb.lmCompatibility</param-name>
        <param-value>2</param-value>
    </init-param>

you can verify this by checking your registry. The reg key is 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa 



More information about the jcifs mailing list