[jcifs] Authentication

Michael B. Allen miallen at eskimo.com
Tue Oct 1 18:11:56 EST 2002


On Mon, 30 Sep 2002 16:20:21 -0400
"Fontecilla Rodrigo" <fontecilla_rodrigo at bah.com> wrote:

> In the example below, the user would need to know the server where the 
> domain is runnning.
> However, on a thin client java app, via the browser the user will not 
> know this.
> Any ideas how to use the code below to make it work?
> When will 0.7 be production?

Obviously you would need to know what domain you're authenticating
clients against. Are you using an applet? It's not clear to me what
you're trying to do.

Also, please direct your questions to the jcifs mailing list.

> 
> Thanks
> 
> 
> Michael B. Allen wrote:
> 
> >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