1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-19 10:03:58 +03:00

Copy the NT_TOKEN to the pipe, so the SAMR can use it for access control.

Andrew Bartlett
(This used to be commit 685a205445f5505c105ea421712c4b0468bbc127)
This commit is contained in:
Andrew Bartlett 2002-07-06 05:08:35 +00:00
parent a7a6da4928
commit 48316a8c0e

View File

@ -344,9 +344,11 @@ static void *make_internal_rpc_pipe_p(char *pipe_name,
p->pipe_user.uid = (uid_t)-1; p->pipe_user.uid = (uid_t)-1;
p->pipe_user.gid = (gid_t)-1; p->pipe_user.gid = (gid_t)-1;
/* Store the session key */ /* Store the session key and NT_TOKEN */
if (vuser) if (vuser) {
memcpy(p->session_key, vuser->session_key, sizeof(p->session_key)); memcpy(p->session_key, vuser->session_key, sizeof(p->session_key));
p->pipe_user.nt_user_token = dup_nt_token(vuser->nt_user_token);
}
/* /*
* Initialize the incoming RPC struct. * Initialize the incoming RPC struct.