summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-01-30 21:49:33 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-02-13 01:25:59 +0100
commitcaf485a2bd0453b7d22600f9106a2026b1a50c79 (patch)
tree23f5b05f738a6ebd565c7b49ffe91356dd7fff4a /source4/smb_server
parent05f9495ff36c2335ff9c69ea408cd9328f6cc6e6 (diff)
downloadsamba-caf485a2bd0453b7d22600f9106a2026b1a50c79.tar.gz
samba-caf485a2bd0453b7d22600f9106a2026b1a50c79.tar.bz2
samba-caf485a2bd0453b7d22600f9106a2026b1a50c79.zip
auth: Pass in the SMB username (for %U) into generate_session_info
This matches what Samba3 does. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Feb 13 01:25:59 CET 2012 on sn-devel-104
Diffstat (limited to 'source4/smb_server')
-rw-r--r--source4/smb_server/smb/sesssetup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/smb_server/smb/sesssetup.c b/source4/smb_server/smb/sesssetup.c
index c84be7f79b..2943747521 100644
--- a/source4/smb_server/smb/sesssetup.c
+++ b/source4/smb_server/smb/sesssetup.c
@@ -85,7 +85,8 @@ static void sesssetup_old_send(struct tevent_req *subreq)
/* This references user_info_dc into session_info */
status = req->smb_conn->negotiate.auth_context->generate_session_info(req,
req->smb_conn->negotiate.auth_context,
- user_info_dc, flags, &session_info);
+ user_info_dc, sess->old.in.user,
+ flags, &session_info);
if (!NT_STATUS_IS_OK(status)) goto failed;
/* allocate a new session */
@@ -217,6 +218,7 @@ static void sesssetup_nt1_send(struct tevent_req *subreq)
status = state->auth_context->generate_session_info(req,
state->auth_context,
user_info_dc,
+ sess->nt1.in.user,
flags,
&session_info);
if (!NT_STATUS_IS_OK(status)) goto failed;