[jcifs] Member in Domain?
Müller Jens
Jens.Mueller at dbv-winterthur.de
Mon Dec 9 20:02:03 EST 2002
Hi @ all,
> 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