rpc_server: common routine to open ldb in system session
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 30 May 2018 02:43:25 +0000 (14:43 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 31 May 2018 07:54:18 +0000 (09:54 +0200)
commitd48b5d5320807ef394d1d31c3f9e92b4955a4aea
tree8e0184f6d4b1866d4dc93f58ddbbe98757be42fa
parentd06ebf646c2a89d2b445f8d4ce85f9151886caa5
rpc_server: common routine to open ldb in system session

Add a function to open an ldb connection under the system session and
save the remote users session details in a ldb_opaque.  This will allow
the audit logging to log the original session for operations performed
in the system session.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/rpc_server/common/server_info.c