summaryrefslogtreecommitdiff
path: root/source/param
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-04-14 16:01:15 +0200
committerAndrew Bartlett <abartlet@samba.org>2008-04-14 16:01:15 +0200
commitcd2d3d1c7a0aad7beb167459276c012c7a6d2e88 (patch)
tree93f9117857094176c69d4e47674dbfd9243c56f2 /source/param
parent79854f0aa6a9899bb72d302cbca695b8b3a3b0dc (diff)
downloadsamba-cd2d3d1c7a0aad7beb167459276c012c7a6d2e88.tar.gz
Include the smbconf parameter to the provision
Otherwise this fails, if the targetdir is not specified Andrew Bartlett
Diffstat (limited to 'source/param')
-rw-r--r--source/param/provision.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/param/provision.c b/source/param/provision.c
index 70ef618b6eb..0e54acf9e42 100644
--- a/source/param/provision.c
+++ b/source/param/provision.c
@@ -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"));