s3:passdb: store the plain nt passwords hashes in history, not salted md5
authorMichael Adam <obnox@samba.org>
Tue, 5 Jan 2010 17:28:48 +0000 (18:28 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 25 Jan 2010 11:49:25 +0000 (12:49 +0100)
commite6397bef88675acc61c1020ac0d5dc848a99beeb
treedd16595b108a765a739f6d2631584bbdb91c949c
parent2fcfdd1135286e269e0e246ca2b34156ba37fd7d
s3:passdb: store the plain nt passwords hashes in history, not salted md5

This is in order to be able to do challenge response with the history,
so that this can be checked when an invalid password was entered:
If the given password is wrong but in the history, then the bad password
count should not be updated...

The "lucky" bit here is that the md5 has and the nt hash (md4) both are
16 bytes long.

This is part of the fix for bug #4347 .

Michael
(cherry picked from commit d909861c64cf874b1625039b0e1eace507a29b28)
source3/passdb/pdb_get_set.c