mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r21383: More possible "security=share" fixes. If a client
is sending LMv2 make sure we test with the password blob in the LM field as well as the NT field. Jeremy.
This commit is contained in:
parent
c6f63a08f5
commit
a6b55beae7
@ -109,6 +109,9 @@ BOOL password_ok(char *smb_name, DATA_BLOB password_blob)
|
|||||||
if (NT_STATUS_IS_OK(pass_check_smb(smb_name, get_session_workgroup(), null_password, password_blob, null_password, encrypted))) {
|
if (NT_STATUS_IS_OK(pass_check_smb(smb_name, get_session_workgroup(), null_password, password_blob, null_password, encrypted))) {
|
||||||
return True;
|
return True;
|
||||||
}
|
}
|
||||||
|
if (NT_STATUS_IS_OK(pass_check_smb(smb_name, get_session_workgroup(), password_blob, null_password, null_password, encrypted))) {
|
||||||
|
return True;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NT_STATUS_IS_OK(pass_check_smb(smb_name, lp_workgroup(), null_password, password_blob, null_password, encrypted))) {
|
if (NT_STATUS_IS_OK(pass_check_smb(smb_name, lp_workgroup(), null_password, password_blob, null_password, encrypted))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user