s3:smbd:password_in_history: treat entry with 0 salt as 0 + plain nt hash
authorMichael Adam <obnox@samba.org>
Tue, 5 Jan 2010 15:58:30 +0000 (16:58 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 25 Jan 2010 11:49:25 +0000 (12:49 +0100)
commit2fcfdd1135286e269e0e246ca2b34156ba37fd7d
tree5efb78e7013a8d83730bb0b694af668f7fd07e56
parent624285b05afc6c6d46a814e980e47bef9f3f6195
s3:smbd:password_in_history: treat entry with 0 salt as 0 + plain nt hash

This is to introduce a new format of the password history, maintaining backwards
compatibility: The old format was 16 byte hash + 16 byte md5(salt + nt hash).
The new format is 16 zero bytes and 16 bytes nt hash.

This will allow us to respect the last X entries of the nt password history
when deciding whether to increment the bad password count.

This is part of the fix for bug #4347 .

Michael
(cherry picked from commit f260d6a48dce32208424aa9bfbf2b1e293e48045)
source3/smbd/chgpasswd.c