summaryrefslogtreecommitdiff
path: root/selftest/tests.py
diff options
context:
space:
mode:
authorJamie McClymont <jamiemcclymont@catalyst.net.nz>2017-11-28 15:45:30 +1300
committerAndrew Bartlett <abartlet@samba.org>2017-12-10 00:47:30 +0100
commit698d28ee8cf4ff8258f2e6fe9b88d81f842584aa (patch)
tree2603e7d297702dcd43e6e37e21f8c91c45cdc39a /selftest/tests.py
parent704bbae25c07c08c051a66ae0a83fb5abda373f1 (diff)
downloadsamba-698d28ee8cf4ff8258f2e6fe9b88d81f842584aa.tar.gz
samba-tool: validate password early in `domain provision`
Checks password against default quality and length standards when it is entered, allowing a second chance to enter one (if interactive), rather than running through the provisioning process and bailing on an exception Includes unit tests for the newly-added python wrapper of check_password_quality plus black-box tests for the checks in samba-tool. Breaks an openldap test which uses an invalid password. BUG: https://bugzilla.samba.org/show_bug.cgi?id=9710 BUG: https://bugzilla.samba.org/show_bug.cgi?id=12235 Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'selftest/tests.py')
-rw-r--r--selftest/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/selftest/tests.py b/selftest/tests.py
index 209800c8ba4..e65d63d8c6a 100644
--- a/selftest/tests.py
+++ b/selftest/tests.py
@@ -66,6 +66,7 @@ planpythontestsuite("none", "samba.tests.param", py3_compatible=True)
planpythontestsuite("none", "samba.tests.upgrade")
planpythontestsuite("none", "samba.tests.core", py3_compatible=True)
planpythontestsuite("none", "samba.tests.provision")
+planpythontestsuite("none", "samba.tests.password_quality")
planpythontestsuite("none", "samba.tests.samba3")
planpythontestsuite("none", "samba.tests.strings")
planpythontestsuite("none", "samba.tests.netcmd")