]> git.ipfire.org Git - thirdparty/samba.git/commit
python/samba/tests/krb5: Add check to confirm UF_SMARCARD_REQUIRED password is expire...
authorAndrew Bartlett <abartlet@samba.org>
Tue, 11 Jun 2024 20:51:54 +0000 (08:51 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 12 Jun 2024 23:43:29 +0000 (23:43 +0000)
commitef87f0be6009dcb95316dbfd71ce9834e7a5a8ed
tree74eda33934c879e8c3d12ffb0dc93329dd79b573
parent43802f1beddc875d1f4fc15babdbadf7615705c9
python/samba/tests/krb5: Add check to confirm UF_SMARCARD_REQUIRED password is expired on NTLM

8944a10b145e99eb6372cace8225e4c5e9d6160e broke password expiry
checking on NTLM, but that is fixed after CID 1603594 triggered
815d696d4471f1b3a4267eb774eb80b07576031b.  In the past we could
not have password expiry times small enough to test expiry
(unlike "must change now"), but having no test was not good.

As we are already doing the sleep() here, add a test to the
password rotation test.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: David Mulder <dmulder@samba.org>
python/samba/tests/krb5/pkinit_tests.py