mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
tests: Extend PSO tests to cover password-history/length/complexity
Unhobble the PSO test cases so that they not only check the msDS-ResultantPSO constructed attribute, but also that the corresponding PSO's password-history, minimum password length, and complexity settings are actually used. The tests now fail once more, as actually using the PSO's settings isn't implemented yet. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
4c42d3f716
commit
6f82161caf
@ -1,3 +1,7 @@
|
||||
samba4.ldap.password_settings.python.password_settings.PasswordSettingsTestCase.test_pso_basics\(ad_dc_ntvfs\)
|
||||
samba4.ldap.password_settings.python.password_settings.PasswordSettingsTestCase.test_pso_equal_precedence\(ad_dc_ntvfs\)
|
||||
samba4.ldap.password_settings.python.password_settings.PasswordSettingsTestCase.test_pso_nested_groups\(ad_dc_ntvfs\)
|
||||
samba4.ldap.password_settings.python.password_settings.PasswordSettingsTestCase.test_pso_special_groups\(ad_dc_ntvfs\)
|
||||
samba4.ldap.password_settings.python.password_settings.PasswordSettingsTestCase.test_pso_min_age\(ad_dc_ntvfs\)
|
||||
samba4.ldap.password_settings.python.password_settings.PasswordSettingsTestCase.test_pso_max_age\(ad_dc_ntvfs\)
|
||||
samba4.ldap.password_settings.python.password_settings.PasswordSettingsTestCase.test_pso_add_user\(ad_dc_ntvfs\)
|
||||
|
@ -129,11 +129,6 @@ class PasswordSettingsTestCase(PasswordTestCase):
|
||||
"Expected PSO %s, not %s" %(pso.name,
|
||||
str(resultant_pso)))
|
||||
|
||||
# temporarily returning early here will just test the resultant-PSO
|
||||
# constructed attribute. Remove this return to also test min password
|
||||
# length, complexity, and password-history
|
||||
return
|
||||
|
||||
# we're mirroring the pwd_history for the user, so make sure this is
|
||||
# up-to-date, before we start making password changes
|
||||
if user.last_pso:
|
||||
|
Loading…
x
Reference in New Issue
Block a user