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)
committerMichael Adam <obnox@samba.org>
Thu, 7 Jan 2010 15:51:17 +0000 (16:51 +0100)
commit017ccd0bda31059f7093f41d1537edd7b5430968
treeddd03190e17c3075b7cd68cd6bfb2089671bfad0
parent667b6f3322ba97bc2e50067dccda9949bb21eaa0
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
source3/passdb/pdb_get_set.c