1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

Fix for null passwords being allowed bug.

Jeremy.
(This used to be commit d4d5548839)
This commit is contained in:
Jeremy Allison 2000-10-05 22:51:57 +00:00
parent a6f31d6877
commit 56d514235e

View File

@ -514,10 +514,14 @@ BOOL pass_check_smb(char *user, char *domain,
return(False);
}
if (lm_pwd[0] == '\0' && (smb_pass->acct_ctrl & ACB_PWNOTREQ) && lp_null_passwords())
{
DEBUG(3,("Account for user '%s' has no password and null passwords are allowed.\n", smb_pass->smb_name));
return(True);
if (smb_pass->acct_ctrl & ACB_PWNOTREQ) {
if (lp_null_passwords()) {
DEBUG(3,("Account for user '%s' has no password and null passwords are allowed.\n", smb_pass->smb_name));
return(True);
} else {
DEBUG(3,("Account for user '%s' has no password and null passwords are NOT allowed.\n", smb_pass->smb_name));
return(False);
}
}
if (smb_password_ok(smb_pass, chal, lm_pwd, nt_pwd))