auth_winbind: Allow badPwdCount to be set to 0 with this auth method
authorGarming Sam <garming@catalyst.net.nz>
Mon, 3 Apr 2017 03:26:12 +0000 (15:26 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 30 May 2017 06:06:06 +0000 (08:06 +0200)
commitb50a147a7e40e17d0e280b4c705ac25cea78c869
treebf812725720145b2a9999443ce57eacb6e3e5e88
parent2368f57b4d7bc26ba08273020d7281fab6f817c8
auth_winbind: Allow badPwdCount to be set to 0 with this auth method

We rely on the other SAM modules to increment the badPwdCount locally,
but we must reset to 0 if the remote sends a success (to override our
failure).

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/auth/ntlm/auth_sam.c
source4/auth/ntlm/auth_winbind.c
source4/auth/sam.c