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:
parent
a6f31d6877
commit
56d514235e
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user