1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +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:
Jeremy Allison 2007-02-16 13:40:11 +00:00 committed by Gerald (Jerry) Carter
parent c6f63a08f5
commit a6b55beae7

View File

@ -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))) {
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))) {