[jcifs] Member in Domain?

Allen, Michael B (RSCH) Michael_B_Allen at ml.com
Mon Dec 9 08:25:43 EST 2002


Please send questions to the jcifs mailing list.

Look at SmbSession.logon().

> -----Original Message-----
> From:	Müller Jens [SMTP:Jens.Mueller at dbv-winterthur.de]
> Sent:	Friday, December 06, 2002 8:22 AM
> To:	'Michael_B_Allen at ml.com'
> Subject:	[jcifs] Member in Domain?
> 
> Hi Michael,
> 
> if got a a little problem and don't know how i could resolve it.
> Im using a ntlm-servlet wich gets the the domain, username, hashed pass, etc
> from the browser (iex).
> It works like your NtlmServlet.
> 
> I put the third Message in following:
> 
> NtlmSsp ns = new NtlmSsp();
> NtlmPasswordAuthentication np = ns.doAuthentication(request, response, msg);
> 
> System.out.println("Domain: " + np.getDomain());
> System.out.println("Name  : " + np.getName());
> System.out.println("Pass  : " + np.getPassword());
> System.out.println("User  : " + np.getUsername());
> System.out.println("Uhash : " + new String(np.getUnicodeHash(msg)));
> System.out.println("AHash : " + new String(np.getAnsiHash(msg)));
> 
> What I now want, is to check if the user is really a member of the nt
> domain.
> For this I want to try a logon or something else with the username, the
> domainname and the hashed password.
> As result i need only a boolean. If it is false, the user has maybee used a
> local account on his computer.
> 
> Does the jcifs-libraries such a method? Do you have an idee, how I can
> resolve this problem?
> 
> Thanks for your help!
> 
> Best Regards
> Jens Mueller




More information about the jcifs mailing list