torture-samr: Add testing of account lockout and password change behaviour
authorAndrew Bartlett <abartlet@samba.org>
Thu, 31 Oct 2013 03:57:10 +0000 (16:57 +1300)
committerStefan Metzmacher <metze@samba.org>
Wed, 2 Apr 2014 17:30:59 +0000 (19:30 +0200)
commit85f57ebda360092efd5d71744d018c4cadd6d86b
tree3e2bcc792a996493eb9f2f7c4da525bb3a554b2d
parent311de5fb4ae46536eb43178f4102728855625e20
torture-samr: Add testing of account lockout and password change behaviour

This is the regression test to avoid a repeat of CVE-2013-4496

This includes confirming that badPwdCount is updated on login, not just on first failure

However the badPwdCount is not updated if the account is disabled

Note: that samr_QueryUserInfo return the effective bad_password_count in level
5, 16 and 21, while it returns the raw value in level 3.

(Sadly the s3 code does not do this correctly, so a knownfail is added)

Change-Id: I4fd8ac5c3b1357e7a98386756dac2a43eb778ecf
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Apr  2 19:30:59 CEST 2014 on sn-devel-104
selftest/knownfail
source4/torture/rpc/samr.c