s3-lib: Get the real initial uid for selftest
authorAndreas Schneider <asn@samba.org>
Fri, 30 Oct 2015 13:31:33 +0000 (14:31 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 5 Nov 2015 08:23:15 +0000 (09:23 +0100)
commit6361063995ed457a6005eb048eef2c55f1b8ae87
treee185fafabd2c78166452e546555b22596f009ff5
parent77eb8e0a4b83d46d854337dbf4f6ace76d557e85
s3-lib: Get the real initial uid for selftest

We need this that if we connect as the user who started smbd, we are
able to perform privileged operation like creating a user.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/lib/util_sec.c