From caf485a2bd0453b7d22600f9106a2026b1a50c79 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 30 Jan 2012 21:49:33 +1100 Subject: auth: Pass in the SMB username (for %U) into generate_session_info This matches what Samba3 does. Andrew Bartlett Autobuild-User: Andrew Bartlett Autobuild-Date: Mon Feb 13 01:25:59 CET 2012 on sn-devel-104 --- source4/smb_server/smb/sesssetup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/smb_server/smb') 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; -- cgit