s3-rpc_server: Make sure we switch always the connecting user.
authorAndreas Schneider <asn@samba.org>
Tue, 30 Aug 2011 14:37:40 +0000 (16:37 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 30 Aug 2011 18:50:54 +0000 (20:50 +0200)
commita38ff63fcdc0d3ac1669b1c1343006d9db4e926b
treefe4f109ee7020bd2d434f8d4e8dba7bd1c255f35
parente52fa6298a461bce125e4292c3c035a7bed22a51
s3-rpc_server: Make sure we switch always the connecting user.

We always have a valid session info and if it is a anonymous connection
we have a session info of the guest user. This means we should always
call become_authenticated_pipe_user() else and anonymous user could do
things as root.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Tue Aug 30 20:50:54 CEST 2011 on sn-devel-104
source3/rpc_server/srv_pipe.c