s3:auth: don't update the bad pw count if pw is among last 2 history entries
authorMichael Adam <obnox@samba.org>
Wed, 6 Jan 2010 16:29:04 +0000 (17:29 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 25 Jan 2010 11:49:26 +0000 (12:49 +0100)
commit872530076011593c1116c16b02e1fa9f0a85f5a8
treebc8bb49641a74d5add682245d565ac00173c4a29
parentbfc4bccf00bf3a17bd3cf12337953425f0fcc471
s3:auth: don't update the bad pw count if pw is among last 2 history entries

This conforms to the behaviour of Windows 2003:
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/security/bpactlck.mspx

This is supposed to fixes Bug #4347 .

Michael
(cherry picked from commit fcadc524779a50ee379fb4feb02448944dc174dc)
source3/auth/auth_sam.c