summaryrefslogtreecommitdiff
path: root/source4/smbd
diff options
context:
space:
mode:
authorGary Lockyer <gary@catalyst.net.nz>2018-04-12 06:41:30 +1200
committerAndrew Bartlett <abartlet@samba.org>2018-05-10 20:02:23 +0200
commit5c0345ea9bb34695dcd7be6c913748323bebe937 (patch)
tree91609b666973bd053448269313e9507672f74597 /source4/smbd
parentdaa7b60a60520c94367e9112246482bae71c5ccd (diff)
downloadsamba-5c0345ea9bb34695dcd7be6c913748323bebe937.tar.gz
samdb: Add remote address to connect
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/smbd')
-rw-r--r--source4/smbd/server.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source4/smbd/server.c b/source4/smbd/server.c
index beac4fff0ca..ed81c01afc1 100644
--- a/source4/smbd/server.c
+++ b/source4/smbd/server.c
@@ -238,10 +238,11 @@ static void prime_ldb_databases(struct tevent_context *event_ctx)
db_context = talloc_new(event_ctx);
samdb_connect(db_context,
- event_ctx,
- cmdline_lp_ctx,
- system_session(cmdline_lp_ctx),
- 0);
+ event_ctx,
+ cmdline_lp_ctx,
+ system_session(cmdline_lp_ctx),
+ NULL,
+ 0);
privilege_connect(db_context, cmdline_lp_ctx);
/* we deliberately leave these open, which allows them to be