[jcifs] NTLM + Log On To field in Active Directory

robin bad robin_bad at bk.ru
Fri Jul 11 08:32:33 GMT 2008


I made my own NTLM Authenticator like NtlmHttpFilter, and it works fine in
case in user's field "Log On To" (in Active Directory) option "All
computers" is selected. But if there is only client computer in this field,
NTLM authentication fails.

Let's look into the sources.

Login and hashes check is here:

    ntlm = new NtlmPasswordAuthentication(domain, user, challenge,
lmResponse, ntResponse);
    SmbSession.logon(domainController, ntlm);

In SmbSession.logon:

    SmbTransport.getSmbTransport( dc, port ).getSmbSession( auth )

There is one interesting metod in SmbTransport:

    static synchronized SmbTransport getSmbTransport( UniAddress address,
int port,
                                    InetAddress localAddr, int localPort )

What is "localAddr"? Is it address of the client? If it is, how can i use

If its not, is there a way to resolve the problem?

View this message in context: http://www.nabble.com/NTLM-%2B-Log-On-To-field-in-Active-Directory-tp18399106p18399106.html
Sent from the Samba - jcifs mailing list archive at Nabble.com.

More information about the jcifs mailing list