summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-06 15:38:31 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-06 15:38:31 +0100
commit0bcedb6ba72b12feb70dbed72468d05197716cb7 (patch)
tree61c170c724bed080100432ba6190e1a07806247d /source4/dsdb
parentc9df4a3c28d21e8acc9df46def8805e56eb8b4ce (diff)
downloadsamba-0bcedb6ba72b12feb70dbed72468d05197716cb7.tar.gz
samba-0bcedb6ba72b12feb70dbed72468d05197716cb7.tar.bz2
samba-0bcedb6ba72b12feb70dbed72468d05197716cb7.zip
s4:samdb_check_password - allow the password string to be NULL
This deactivates the password complexity check, but not the minimum password length one, since the length is specified. This change is needed by my password module work.
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/common/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index 76a4efc82d..393e1d45f5 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -1590,6 +1590,7 @@ enum samr_ValidationStatus samdb_check_password(const DATA_BLOB *password,
/* checks the password complexity */
if (((pwdProperties & DOMAIN_PASSWORD_COMPLEX) != 0)
+ && (password->data != NULL)
&& (!check_password_quality((const char *) password->data)))
return SAMR_VALIDATION_STATUS_NOT_COMPLEX_ENOUGH;