🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1510

Set LANMAN and NT hashes for a user

#1510
From: remy
Date: Mon, 23 Jul 2007 14:29
16 lines
1687 bytes
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
Technical Details
Message-ID: <1185200970.535612.187530@n2g2000hse.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!postnews.google.com!n2g2000hse.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4210594fe7b90d66,start
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!postnews.google.com!n2g2000hse.googlegroups.com!not-for-mail
From:  remy@luckyhands.nl
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Set LANMAN and NT hashes for a user
Date: Mon, 23 Jul 2007 07:29:30 -0700
Organization: http://groups.google.com
Lines: 17
Message-ID: <1185200970.535612.187530@n2g2000hse.googlegroups.com>
NNTP-Posting-Host: 130.37.80.247
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1185200970 1300 127.0.0.1 (23 Jul 2007 14:29:30 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 23 Jul 2007 14:29:30 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: n2g2000hse.googlegroups.com; posting-host=130.37.80.247;
   posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0