From 75d03970b78538346308c612ca6be15559e15b5b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 26 May 2009 16:38:45 +0200 Subject: s3:smbd: move more session specific globals to struct smbd_server_connection metze --- source3/auth/auth_compat.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source3/auth/auth_compat.c') diff --git a/source3/auth/auth_compat.c b/source3/auth/auth_compat.c index d8087e6588..77a994828f 100644 --- a/source3/auth/auth_compat.c +++ b/source3/auth/auth_compat.c @@ -97,6 +97,7 @@ return True if the password is correct, False otherwise ****************************************************************************/ bool password_ok(struct auth_context *actx, bool global_encrypted, + const char *session_workgroup, const char *smb_name, DATA_BLOB password_blob) { @@ -109,11 +110,11 @@ bool password_ok(struct auth_context *actx, bool global_encrypted, * but fall-through as required. * Vista sends NTLMv2 here - we need to try the client given workgroup. */ - if (get_session_workgroup()) { - if (NT_STATUS_IS_OK(pass_check_smb(actx, smb_name, get_session_workgroup(), null_password, password_blob, null_password, encrypted))) { + if (session_workgroup) { + if (NT_STATUS_IS_OK(pass_check_smb(actx, smb_name, session_workgroup, null_password, password_blob, null_password, encrypted))) { return True; } - if (NT_STATUS_IS_OK(pass_check_smb(actx, smb_name, get_session_workgroup(), password_blob, null_password, null_password, encrypted))) { + if (NT_STATUS_IS_OK(pass_check_smb(actx, smb_name, session_workgroup, password_blob, null_password, null_password, encrypted))) { return True; } } -- cgit