Generating lmPassword and ntPassword values with openssl?

Jon L.Gardner jon at
Fri Feb 8 13:21:10 GMT 2002

You did indeed. Brilliant. Thanks.

lmPassword=`smbencrypt $password | cut -f1 -d:`
ntPassword=`smbencrypt $password | cut -f2 -d:`

On Friday, February 8, 2002, at 08:05 AM, Gerald Carter wrote:

> I dunno about openssl, but I think I uploaded a source tarball named
> smbencrypt that would do this (based on some old NISgina code from Nigel
> Williams which was originally based off parts of Samba).

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 <>

"Congress has not unlimited powers to provide for the general welfare 
but only those specifically enumerated." (Thomas Jefferson)

More information about the samba-technical mailing list