1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Fixed bug with -add code that put wrong password in nt md4 field.

Jeremy (jallison@whistle.com)
This commit is contained in:
Samba Release Account 0001-01-01 00:00:00 +00:00
parent ed6aaf2667
commit aabb18953b

View File

@ -404,7 +404,7 @@ Error was %d\n", argv[0], pwd->pw_name, pfile, errno);
p += 32; p += 32;
*p++ = ':'; *p++ = ':';
for( i = 0; i < 16; i++) 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 += 32;
*p++ = ':'; *p++ = ':';
sprintf(p, "%s:%s:%s\n", pwd->pw_gecos, sprintf(p, "%s:%s:%s\n", pwd->pw_gecos,