r13340: The gensec_init() needs to be after the popt processing, as it
authorAndrew Bartlett <abartlet@samba.org>
Sat, 4 Feb 2006 09:49:33 +0000 (09:49 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:51:46 +0000 (13:51 -0500)
disables modules based on parametric options.

Andrew Bartlett

source/lib/ldb/tools/cmdline.c

index 446923f282d1a7970d1dd3091a32b77758e9bd47..1926df4c864f74d6dd336fda6243418c4d983738 100644 (file)
@@ -72,8 +72,6 @@ struct ldb_cmdline *ldb_cmdline_process(struct ldb_context *ldb, int argc, const
        };
 
 #ifdef _SAMBA_BUILD_
        };
 
 #ifdef _SAMBA_BUILD_
-       gensec_init(); 
-
        r = ldb_register_samba_handlers(ldb);
        if (r != 0) {
                goto failed;
        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_
                }
 
 #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;
                }
                if (ldb_set_opaque(ldb, "sessionInfo", system_session(ldb))) {
                        goto failed;
                }