1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

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.
This commit is contained in:
Matthias Dieter Wallnöfer 2009-11-06 15:38:31 +01:00
parent c9df4a3c28
commit 0bcedb6ba7

View 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;