From 0bcedb6ba72b12feb70dbed72468d05197716cb7 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 6 Nov 2009 15:38:31 +0100 Subject: 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. --- source4/dsdb/common/util.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4') 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; -- cgit