s3-rpc_server read and write the unix_token and unix_info across named_pipe_auth
authorAndrew Bartlett <abartlet@samba.org>
Mon, 18 Jul 2011 02:23:04 +0000 (12:23 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 19 Jul 2011 23:17:13 +0000 (09:17 +1000)
commit8d72e612ac2845cd873c4fd614456fe8749db130
treec0f6d0774b59bf72045c5e35d0d25d09515f6727
parent594597eb65a9abc0f6190f887ab0fd79caa58085
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>
source3/rpc_server/rpc_ncacn_np.c
source3/rpc_server/rpc_server.c