diff options
author | Andrew Bartlett <abartlet@samba.org> | 2017-08-10 10:13:24 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-08-30 10:48:19 +0200 |
commit | 7fdeea0f3028421133e35e2fb116c76285819424 (patch) | |
tree | 731e0d18742e8998e6c01711bdccaff576d8d636 | |
parent | f0b85c1da2617f1b4d6f17a2cdab60943aca35e6 (diff) | |
download | samba-7fdeea0f3028421133e35e2fb116c76285819424.tar.gz |
dsdb: Add comment showing where the normal password rules are applied
This looks like a footnote, but is actually where the default password rules are applied.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
-rw-r--r-- | source4/dsdb/common/util.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index 7a12c71799b..d70419dc159 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -2111,6 +2111,11 @@ enum samr_ValidationStatus samdb_check_password(TALLOC_CTX *mem_ctx, TALLOC_FREE(password_script); + /* + * Here are the standard AD password quality rules, which we + * run after the script. + */ + if (!check_password_quality(utf8_pw)) { return SAMR_VALIDATION_STATUS_NOT_COMPLEX_ENOUGH; } |