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

Dejan Ilic: spotted "NETLOGON" bug, failure of NT_STATUS WRONG_PASSWORD.

This commit is contained in:
Luke Leighton -
parent e15da68824
commit 2f02a083b2

View File

@ -534,9 +534,9 @@ static uint32 net_login_interactive(NET_ID_INFO_1 *id1,
smb_pass->unix_name));
}
if (memcmp(smb_pass->smb_passwd , lm_pwd, 16) != 0 &&
(smb_pass->smb_nt_passwd == NULL ||
memcmp(smb_pass->smb_nt_passwd, nt_pwd, 16) != 0))
if (memcmp(smb_pass->smb_passwd , lm_pwd, 16) != 0 ||
smb_pass->smb_nt_passwd == NULL ||
memcmp(smb_pass->smb_nt_passwd, nt_pwd, 16) != 0)
{
status = 0xC0000000 | NT_STATUS_WRONG_PASSWORD;
}