summaryrefslogtreecommitdiff
path: root/source4/utils/net
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-06 23:34:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:21 -0500
commit49efc495417b5900c653f8d6453dcceed9c02239 (patch)
tree8eff02daf40d49620ceb832413ec44f0d3a52415 /source4/utils/net
parentba564a901e519b0f2cf2b7651bd260f618506b5c (diff)
downloadsamba-49efc495417b5900c653f8d6453dcceed9c02239.tar.gz
samba-49efc495417b5900c653f8d6453dcceed9c02239.tar.bz2
samba-49efc495417b5900c653f8d6453dcceed9c02239.zip
r13904: Make sure LDB gets initialized
(This used to be commit 4339e3e7d746d2fcb16ce2662a22a880e426367b)
Diffstat (limited to 'source4/utils/net')
-rw-r--r--source4/utils/net/net.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/utils/net/net.c b/source4/utils/net/net.c
index f82eddb763..303449c742 100644
--- a/source4/utils/net/net.c
+++ b/source4/utils/net/net.c
@@ -44,6 +44,7 @@
#include "includes.h"
#include "utils/net/net.h"
#include "lib/cmdline/popt_common.h"
+#include "lib/ldb/include/ldb.h"
/*
run a function from a function table. If not found then
@@ -187,6 +188,8 @@ static int binary_net(int argc, const char **argv)
dcerpc_init();
+ ldb_global_init();
+
mem_ctx = talloc_init("net_context");
ctx = talloc(mem_ctx, struct net_context);
if (!ctx) {