git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s4:samdb_check_password - allow the password string to be NULL
[samba.git]
/
source4
/
dsdb
/
common
/
util.c
diff --git
a/source4/dsdb/common/util.c
b/source4/dsdb/common/util.c
index 76a4efc82d073e9d41f941b639ecadbdca4ea202..393e1d45f515a55b80fe50357a97a21231b1715d 100644
(file)
--- 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;