Fixed bug with -add code that put wrong password in nt md4 field.
authorSamba Release Account <samba-bugs@samba.org>
Mon, 21 Jul 1997 16:58:10 +0000 (16:58 +0000)
committerSamba Release Account <samba-bugs@samba.org>
Mon, 21 Jul 1997 16:58:10 +0000 (16:58 +0000)
Jeremy (jallison@whistle.com)
(This used to be commit aabb18953b5d026af3548610aa1ffd6ea2fd72e5)

source3/utils/smbpasswd.c

index e03ebbaaef7bf9abdb8514e291d7afaf5a25bb32..6088263bccd9d216ff5be9ff64ac7fe479ae990e 100644 (file)
@@ -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,