diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-07-18 12:23:04 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-07-20 09:17:13 +1000 |
commit | 8d72e612ac2845cd873c4fd614456fe8749db130 (patch) | |
tree | c0f6d0774b59bf72045c5e35d0d25d09515f6727 /source3/rpc_server/rpc_ncacn_np.c | |
parent | 594597eb65a9abc0f6190f887ab0fd79caa58085 (diff) | |
download | samba-8d72e612ac2845cd873c4fd614456fe8749db130.tar.gz samba-8d72e612ac2845cd873c4fd614456fe8749db130.tar.bz2 samba-8d72e612ac2845cd873c4fd614456fe8749db130.zip |
s3-rpc_server read and write the unix_token and unix_info across named_pipe_auth
This ensures that the exact same token is used on both sides of the
pipe, when a full token is passed (ie, source3 to source3, but not yet
source4 to to source3 as the unix info isn't calculated there yet).
If we do not have unix_token, we fall back to the old behaviour and go
via create_local_token(). (However, in this case the security_token
is now overwritten, as it is better to have it match the rest of the
session_info create_local_token() builds).
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/rpc_server/rpc_ncacn_np.c')
-rw-r--r-- | source3/rpc_server/rpc_ncacn_np.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpc_server/rpc_ncacn_np.c b/source3/rpc_server/rpc_ncacn_np.c index 0fa8e83329..f43d0b81bc 100644 --- a/source3/rpc_server/rpc_ncacn_np.c +++ b/source3/rpc_server/rpc_ncacn_np.c @@ -682,6 +682,8 @@ struct np_proxy_state *make_external_rpc_pipe_p(TALLOC_CTX *mem_ctx, /* Send the named_pipe_auth server the user's full token */ session_info_npa->security_token = session_info->security_token; session_info_npa->session_key = session_info->session_key; + session_info_npa->unix_token = session_info->unix_token; + session_info_npa->unix_info = session_info->unix_info; val.sam3 = session_info->info3; |