s4:samdb_check_password - allow the password string to be NULL
[samba.git] / 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;