s4:samdb_check_password - allow the password string to be NULL
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Fri, 6 Nov 2009 14:38:31 +0000 (15:38 +0100)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Fri, 6 Nov 2009 14:38:31 +0000 (15:38 +0100)
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

index 76a4efc82d073e9d41f941b639ecadbdca4ea202..393e1d45f515a55b80fe50357a97a21231b1715d 100644 (file)
@@ -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;