summaryrefslogtreecommitdiff
path: root/source4/setup
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 /source4/setup
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 'source4/setup')
-rw-r--r--source4/setup/provision_basedn_modify.ldif2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/setup/provision_basedn_modify.ldif b/source4/setup/provision_basedn_modify.ldif
index a5e704769db..7d852ba33a7 100644
--- a/source4/setup/provision_basedn_modify.ldif
+++ b/source4/setup/provision_basedn_modify.ldif
@@ -39,7 +39,7 @@ replace: minPwdAge
minPwdAge: -864000000000
-
replace: minPwdLength
-minPwdLength: 7
+minPwdLength: ${MIN_PWD_LENGTH}
-
replace: modifiedCount
modifiedCount: 1