summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-08-13 14:33:57 +1000
committerAndrew Bartlett <abartlet@samba.org>2009-08-17 09:50:56 +1000
commit51d2d3df6db016250c12bf8c97374402dc4cb277 (patch)
tree705e5eb0db399294609a1ebf5e989c1a8eb2a123 /source4/scripting/python
parente1e99a7c7bb3a69d2c522ef272301b0ba73efd7f (diff)
downloadsamba-51d2d3df6db016250c12bf8c97374402dc4cb277.tar.gz
samba-51d2d3df6db016250c12bf8c97374402dc4cb277.tar.bz2
samba-51d2d3df6db016250c12bf8c97374402dc4cb277.zip
s4:schema Allow a schema load on an unconnected database
This helps ensure we don't load the schema too often in the provision (allowing a reference in of the schema before the modules load). Andrew Bartlett
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/pyglue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/pyglue.c b/source4/scripting/python/pyglue.c
index 36aae9ccef..d4db55431f 100644
--- a/source4/scripting/python/pyglue.c
+++ b/source4/scripting/python/pyglue.c
@@ -348,7 +348,7 @@ static PyObject *py_dsdb_set_schema_from_ldb(PyObject *self, PyObject *args)
return NULL;
}
- ret = dsdb_reference_schema(ldb, schema);
+ ret = dsdb_reference_schema(ldb, schema, true);
PyErr_LDB_ERROR_IS_ERR_RAISE(py_ldb_get_exception(), ret, ldb);
Py_RETURN_NONE;