[jcifs] Authentication

Joseph Kezar jkezar at romz.no-ip.com
Tue Oct 1 05:17:28 EST 2002


NtlmPasswordAuthentication auth =  new 
NtlmPasswordAuthentication("domain", "username", "password");

try {
  UniAddress dc = UniAddress.getByName("pdcname");
   SmbSession.logon(dc, auth);
   return(true);
} catch (SmbException ex) {
   return(false);
}  catch (UnknownHostException e) {
  e.printStackTrace();
  return(false);
}

Fontecilla Rodrigo wrote:

>I have a Web site with a login/password/domain input fields.
>How can I use (java program) jcifs to authenticate and do password
>validation
>with on an NT domain server.  I'd love to have a sample code.
>
>Please send replies to fontecilla at bah.com
>
>Thanks in advance.
>
>  
>






More information about the jcifs mailing list