[jcifs] Authentication

Michael B. Allen miallen at eskimo.com
Tue Oct 1 05:51:26 EST 2002


Or  if  you're very conscientious of the fact that 0.7 is beta you can also
try  the NtlmHttpFilter which will be the definitive way to do this sort of
thing when 0.7 is stable.

  http://jcifs.samba.org/src/docs/ntlmhttpauth.html

Unfortunately, accessing SMB resources while your using the Filter does not
work  contrary  to  what  is described in the documentation. The Filter has
always  worked  for  me  but  I'm  not  at  the  point were I'm using it in
production yet so...YMMV. 


On Mon, 30 Sep 2002 15:17:28 -0400
Joseph Kezar <jkezar at romz.no-ip.com> wrote:

> 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.
> >
> >  
> >
> 
> 
> 


-- 
A  program should be written to model the concepts of the task it
performs rather than the physical world or a process because this
maximizes  the  potential  for it to be applied to tasks that are
conceptually  similar and more importantly to tasks that have not
yet been conceived. 



More information about the jcifs mailing list