Include the smbconf parameter to the provision
authorAndrew Bartlett <abartlet@samba.org>
Mon, 14 Apr 2008 14:01:15 +0000 (16:01 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 14 Apr 2008 14:01:15 +0000 (16:01 +0200)
Otherwise this fails, if the targetdir is not specified

Andrew Bartlett
(This used to be commit cd2d3d1c7a0aad7beb167459276c012c7a6d2e88)

source4/param/provision.c

index 70ef618b6eb6dfa89514442afa42b8677811f028..0e54acf9e429b5a4b403eab6c91a817ef7652244 100644 (file)
@@ -76,6 +76,9 @@ NTSTATUS provision_bare(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx,
                 settings->targetdir));
        parameters = PyDict_New();
 
+       PyDict_SetItemString(parameters, "smbconf", 
+                            PyString_FromString(lp_configfile(lp_ctx)));
+
        PyDict_SetItemString(parameters, "rootdn", 
                                                 PyString_FromString(settings->root_dn_str));
        if (settings->targetdir != NULL)
@@ -129,7 +132,6 @@ NTSTATUS provision_bare(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx,
        result->domaindn = talloc_strdup(mem_ctx, PyString_AsString(PyObject_GetAttrString(py_result, "domaindn")));
 
        /* FIXME paths */
-       /* FIXME samdb */
        result->lp_ctx = lp_from_py_object(PyObject_GetAttrString(py_result, "lp"));
        result->samdb = ldb_context_from_py_object(PyObject_GetAttrString(py_result, "samdb"));