s3-passdb use new loadparm_init_s3 rather than reloading the smb.conf
authorAndrew Bartlett <abartlet@samba.org>
Mon, 6 Jun 2011 01:16:19 +0000 (11:16 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 6 Jun 2011 07:37:51 +0000 (17:37 +1000)
source3/passdb/pdb_samba4.c

index 558f8d034ca4f26ae3f5ae3bc3fcd0059e1b21dc..b8b11e4551f1bcad14a9b80ddd2a8650cfaaf186 100644 (file)
@@ -2061,21 +2061,9 @@ static NTSTATUS pdb_init_samba4(struct pdb_methods **pdb_method,
                goto fail;
        }
 
-       state->lp_ctx = loadparm_init(state);
+       state->lp_ctx = loadparm_init_s3(state, loadparm_s3_context());
        if (state->lp_ctx == NULL) {
-               DEBUG(10, ("loadparm_init failed\n"));
-               goto fail;
-       }
-
-       if (lp_loaded()) {
-               config_file = lp_configfile();
-       }
-       if (!config_file || !config_file[0]) {
-               config_file = get_dyn_CONFIGFILE();
-       }
-
-       if (!lpcfg_load(state->lp_ctx, config_file)) {
-               DEBUG(1, ("s4 lpcfg_load() of s3 config file %s failed", config_file));
+               DEBUG(10, ("loadparm_init_s3 failed\n"));
                goto fail;
        }