diff options
author | Jeremy Allison <jra@samba.org> | 2007-02-16 13:40:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:59 -0500 |
commit | 299e16112d781ab8c24134c249e0259265a15fd4 (patch) | |
tree | 279a2a7448bb6ea49e2c9bb8f576cb1ec374185f | |
parent | ca072a99985eaa3036be8116027ea951abc6a759 (diff) | |
download | samba-299e16112d781ab8c24134c249e0259265a15fd4.tar.gz samba-299e16112d781ab8c24134c249e0259265a15fd4.tar.bz2 samba-299e16112d781ab8c24134c249e0259265a15fd4.zip |
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 used to be commit a6b55beae7ae0c70cf955d01f51f881f9f962910)
-rw-r--r-- | source3/auth/auth_compat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/auth/auth_compat.c b/source3/auth/auth_compat.c index 7b9802f7d4..13035eece2 100644 --- a/source3/auth/auth_compat.c +++ b/source3/auth/auth_compat.c @@ -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))) { |