[jcifs] NTLM Standalone Authentication

Glass, Eric eric.glass at capitalone.com
Tue Oct 1 02:56:44 EST 2002


Look at SmbSession.logon, something like this:

NtlmPasswordAuthentication auth =
        new NtlmPasswordAuthentication("domain", "username", "password");
UniAddress dc = UniAddress.getByName("pdcname");
try {
    SmbSession.logon(dc, auth);
    return true;
} catch (SmbException ex) {
    return false;
}

> -----Original Message-----
> From: Joseph Kezar [mailto:jkezar at doc.state.vt.us]
> Sent: Monday, September 30, 2002 12:47 PM
> To: jcifs at lists.samba.org
> Subject: [jcifs] NTLM Standalone Authentication
> 
> 
> Is there an abstract method to authenticate against a PDC/BDC 
> and get a 
> boolean value as it return?
> 
> Something like:
> boolean canIProceed = 
> NTLMAuthenticator.authenticate("username","password","pdcname"
> ,"bdcname");
> if(canIProceed) {
>   System.out.println("I authenticated successfuly!");
> } else {
>   System.out.println("The PDC/BDC rejected your login");
> }
> 
 
**************************************************************************
The information transmitted herewith is sensitive information intended only
for use by the individual or entity to which it is addressed. If the reader
of this message is not the intended recipient, you are hereby notified that
any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.



More information about the jcifs mailing list