summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/ldb/tools/cmdline.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/lib/ldb/tools/cmdline.c b/source4/lib/ldb/tools/cmdline.c
index 446923f282..1926df4c86 100644
--- a/source4/lib/ldb/tools/cmdline.c
+++ b/source4/lib/ldb/tools/cmdline.c
@@ -72,8 +72,6 @@ struct ldb_cmdline *ldb_cmdline_process(struct ldb_context *ldb, int argc, const
};
#ifdef _SAMBA_BUILD_
- gensec_init();
-
r = ldb_register_samba_handlers(ldb);
if (r != 0) {
goto failed;
@@ -198,6 +196,9 @@ struct ldb_cmdline *ldb_cmdline_process(struct ldb_context *ldb, int argc, const
}
#ifdef _SAMBA_BUILD_
+ /* Must be after we have processed command line options */
+ gensec_init();
+
if (ldb_set_opaque(ldb, "sessionInfo", system_session(ldb))) {
goto failed;
}