Set LANMAN and NT hashes for a user


2007-07-23 10:29:30 PM
cppbuilder61
Hi group,
I need to rename user accounts on a NT4 domain controller and reset
the password. Renaming the user account is easy. I do not have the
users' plain text password available, only the LANMAN and NT hashes of
the password (from a Samba smbpasswd file).
I've been looking on MSDN for a solution, but the only thing I could
find is NetUserSetInfo(), using a level of 21 and the USER_INFO_21
structure. This allows me (at least I think it does) to reset the
LANMAN hash.
Is it possible to change the NT hash as well? How?
Thanks
Remy Zandwijk