Generating lmPassword and ntPassword values with openssl?

Jon L.Gardner jon at
Thu Feb 7 21:48:04 GMT 2002

Generating a standard UNIX password hash with openssl is straightforward:

openssl passwd -crypt <plaintext_password>

Is there a way to do the same thing to generate the lmPassword and 
ntPassword values to store in an LDAP server, so that Samba can 
authenticate off of it?

Jon L. Gardner '89, Computer Systems Manager <mailto:jon at>
Texas A&M University Dept. of Food Services <>
Tel 979.458.1839 * Fax 979.845.2157 * Hip 979.229.4323
PGP public key available at <>

"The law...dictated by God Himself is, of course, superior in obligation 
to any other. It is binding over all the globe, in all countries, and at 
all times. No human laws are of any validity if contrary to this." 
(Alexander Hamilton)

More information about the samba-technical mailing list