[jcifs] How can I create a ntlm-hash with Java

Michael B Allen ioplex at gmail.com
Sat Feb 14 20:45:55 MST 2015


On Sun, Feb 1, 2015 at 6:16 AM, Claudio <clamun at gmail.com> 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/


More information about the jCIFS mailing list