diff options
author | Samba Release Account <samba-bugs@samba.org> | 1997-07-21 16:58:10 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1997-07-21 16:58:10 +0000 |
commit | b95057c1276f0350a5b7d6a4bc4847e21d7be86b (patch) | |
tree | 0493ee35486e3998d532bfb9440ea5a743103907 | |
parent | ce7ac138aa446b0585232a09bd5c8cd980bb0535 (diff) | |
download | samba-b95057c1276f0350a5b7d6a4bc4847e21d7be86b.tar.gz samba-b95057c1276f0350a5b7d6a4bc4847e21d7be86b.tar.bz2 samba-b95057c1276f0350a5b7d6a4bc4847e21d7be86b.zip |
Fixed bug with -add code that put wrong password in nt md4 field.
Jeremy (jallison@whistle.com)
(This used to be commit aabb18953b5d026af3548610aa1ffd6ea2fd72e5)
-rw-r--r-- | source3/utils/smbpasswd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index e03ebbaaef..6088263bcc 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -404,7 +404,7 @@ Error was %d\n", argv[0], pwd->pw_name, pfile, errno); p += 32; *p++ = ':'; for( i = 0; i < 16; i++) - sprintf(&p[i*2], "%02X", old_p16[i]); + sprintf(&p[i*2], "%02X", new_nt_p16[i]); p += 32; *p++ = ':'; sprintf(p, "%s:%s:%s\n", pwd->pw_gecos, |