s3-smbd: Added a become_user_by_session() function.
commit71885207ea6453f75d383a0265c73195df048dbf
authorAndreas Schneider <asn@samba.org>
Fri, 1 Apr 2011 09:54:49 +0000 (1 11:54 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 11 Apr 2011 22:03:38 +0000 (11 15:03 -0700)
treee84aa79b1176f68f6a3fc26fc00fdc2e3f043d47
parentfe0882c896030dad91d8fda85a4ed031c68ae1ed
s3-smbd: Added a become_user_by_session() function.

This uses the provided session_info instead of searching the user via
the vuid. This is useful to work with fake connnection you need to
create if someone connects directly to a rpc service.

Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit b137156acbf7c39c86f306100cccc65b441a3209)
source3/smbd/proto.h
source3/smbd/uid.c