summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-14 08:52:51 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-15 09:46:27 +0100
commit28d573168cb869a7c4cf85ad094eba3805676cbd (patch)
tree72dcc1afe34380a90059cf8424913414c46c3377 /source4/param
parent75ae19422b2b405cabe269c29afb61a1b50636d1 (diff)
downloadsamba-28d573168cb869a7c4cf85ad094eba3805676cbd.tar.gz
samba-28d573168cb869a7c4cf85ad094eba3805676cbd.tar.bz2
samba-28d573168cb869a7c4cf85ad094eba3805676cbd.zip
s4:param/provision: pass schema_dn to provision_get_schema()
metze
Diffstat (limited to 'source4/param')
-rw-r--r--source4/param/provision.c9
-rw-r--r--source4/param/provision.h4
2 files changed, 11 insertions, 2 deletions
diff --git a/source4/param/provision.c b/source4/param/provision.c
index 55540d4fc4..766babead4 100644
--- a/source4/param/provision.c
+++ b/source4/param/provision.c
@@ -330,7 +330,9 @@ failure:
}
-struct ldb_context *provision_get_schema(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx,
+struct ldb_context *provision_get_schema(TALLOC_CTX *mem_ctx,
+ struct loadparm_context *lp_ctx,
+ const char *schema_dn,
DATA_BLOB *override_prefixmap)
{
PyObject *schema_mod, *schema_dict, *schema_fn, *py_result, *parameters;
@@ -362,6 +364,11 @@ struct ldb_context *provision_get_schema(TALLOC_CTX *mem_ctx, struct loadparm_co
parameters = PyDict_New();
+ if (schema_dn) {
+ PyDict_SetItemString(parameters, "schemadn",
+ PyString_FromString(schema_dn));
+ }
+
if (override_prefixmap) {
PyDict_SetItemString(parameters, "override_prefixmap",
PyString_FromStringAndSize((const char *)override_prefixmap->data,
diff --git a/source4/param/provision.h b/source4/param/provision.h
index 36758b9707..fc0287831c 100644
--- a/source4/param/provision.h
+++ b/source4/param/provision.h
@@ -63,7 +63,9 @@ NTSTATUS provision_store_self_join(TALLOC_CTX *mem_ctx, struct loadparm_context
struct provision_store_self_join_settings *settings,
const char **error_string);
-struct ldb_context *provision_get_schema(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx,
+struct ldb_context *provision_get_schema(TALLOC_CTX *mem_ctx,
+ struct loadparm_context *lp_ctx,
+ const char *schema_dn,
DATA_BLOB *override_prefixmap);
#endif /* _PROVISION_H_ */