Re: How can I create a ntlm-hash with Java
Michael B Allen <[email protected]> Sat, 14 Feb 2015 22:45:55 -0500
| Newsgroups | gmane.network.samba.java |
|---|---|
| Message-ID | <CAGMFw4hkqcXU+tL6_tpZoTV7JsVEF0isySUCv5cFFH+rX3RBuA@mail.gmail.com> |
On Sun, Feb 1, 2015 at 6:16 AM, Claudio <[email protected]> wrote: > Hello everyone, > > In our ldap store information that is used by different software, including > samba. We developed an application to centralize the administration of such > information. Among the things we still have pending is the generation of > ntPassword lmPassword and passwords, which is reflected in the management > of sambaLMPassword and sambaNTPassword attributes. > > We would like to know how to generate the hash to save those attributes. Hi Claudio, JCIFS does not really have an NTLM "library" that would really help you with that sort of thing. I'm not sure what those LDAP attributes really are but my guess is that they are the raw NTLM hash which is just the MD4 digest of the UCS2-LE representation of the password which is the jcifs.smb.NtlmPasswordAuthentication.nTOWFv1() method in JCIFS. HTH Mike -- Michael B Allen Java Active Directory Integration http://www.ioplex.com/