mirror of
https://github.com/samba-team/samba.git
synced 2025-01-04 05:18:06 +03:00
Actually checking both the account and password tests would be a good idea...
Andrew Bartlett
(This used to be commit 49640635b1
)
This commit is contained in:
parent
89152846b7
commit
3354f25489
@ -420,13 +420,13 @@ static NTSTATUS check_sam_security(const struct auth_context *auth_context,
|
||||
|
||||
nt_status = sam_account_ok(mem_ctx, sampass, user_info);
|
||||
|
||||
nt_status = sam_password_ok(auth_context, mem_ctx, sampass, user_info, user_sess_key);
|
||||
|
||||
if (!NT_STATUS_IS_OK(nt_status)) {
|
||||
pdb_free_sam(&sampass);
|
||||
return nt_status;
|
||||
}
|
||||
|
||||
nt_status = sam_password_ok(auth_context, mem_ctx, sampass, user_info, user_sess_key);
|
||||
|
||||
if (!NT_STATUS_IS_OK(nt_status)) {
|
||||
pdb_free_sam(&sampass);
|
||||
return nt_status;
|
||||
|
Loading…
Reference in New Issue
Block a user