diff options
author | Tim Beale <timbeale@catalyst.net.nz> | 2018-05-08 14:45:17 +1200 |
---|---|---|
committer | Garming Sam <garming@samba.org> | 2018-05-23 06:55:30 +0200 |
commit | 6f82161caf299059c6d35bf28b9dfd8c1e4ddb30 (patch) | |
tree | e080da87fbb5599167c9d63347456dd6b9f1f12c /source4 | |
parent | 4c42d3f7165e7532cd95645b7b27173a32fa53df (diff) | |
download | samba-6f82161caf299059c6d35bf28b9dfd8c1e4ddb30.tar.gz |
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>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/tests/python/password_settings.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source4/dsdb/tests/python/password_settings.py b/source4/dsdb/tests/python/password_settings.py index 4ba534f956d..7712d241597 100644 --- a/source4/dsdb/tests/python/password_settings.py +++ b/source4/dsdb/tests/python/password_settings.py @@ -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: |