s3-smbd: Added a become_user_by_session() function.
commitd328db5e82f0aa5468c3780515fed9d99e8202f5
authorAndreas Schneider <asn@samba.org>
Fri, 1 Apr 2011 09:54:49 +0000 (1 11:54 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 12 Apr 2011 13:12:24 +0000 (12 15:12 +0200)
tree1c184d42bb819ef27fd0cea21d59cb88a71063f5
parent08ccde5a1e478407ecc50b00d2e4b1f87c10039e
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)
(cherry picked from commit 71885207ea6453f75d383a0265c73195df048dbf)
source3/smbd/proto.h
source3/smbd/uid.c