summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-27 23:24:46 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-05 11:56:22 +0100
commit49397a8b3e30b23a4723125986f306fff502a144 (patch)
treef312a2ba264d30bc6c0bd92822f4e10744448d76
parent992d35d38a95280dfa18f0ad5f518d2b8342c7dc (diff)
downloadsamba-49397a8b3e30b23a4723125986f306fff502a144.tar.gz
samba-49397a8b3e30b23a4723125986f306fff502a144.tar.bz2
samba-49397a8b3e30b23a4723125986f306fff502a144.zip
s4:samdb python bindings - add a wrapper for "dsdb_make_schema_global"
-rw-r--r--source4/scripting/python/pyglue.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/source4/scripting/python/pyglue.c b/source4/scripting/python/pyglue.c
index adb665dc72..b138e3eeec 100644
--- a/source4/scripting/python/pyglue.c
+++ b/source4/scripting/python/pyglue.c
@@ -427,6 +427,21 @@ static PyObject *py_dsdb_set_schema_from_ldb(PyObject *self, PyObject *args)
Py_RETURN_NONE;
}
+static PyObject *py_dsdb_make_schema_global(PyObject *self, PyObject *args)
+{
+ PyObject *py_ldb;
+ struct ldb_context *ldb;
+
+ if (!PyArg_ParseTuple(args, "O", &py_ldb))
+ return NULL;
+
+ PyErr_LDB_OR_RAISE(py_ldb, ldb);
+
+ dsdb_make_schema_global(ldb);
+
+ Py_RETURN_NONE;
+}
+
static PyObject *py_dom_sid_to_rid(PyLdbObject *self, PyObject *args)
{
PyObject *py_sid;
@@ -489,6 +504,8 @@ static PyMethodDef py_misc_methods[] = {
NULL },
{ "dsdb_convert_schema_to_openldap", (PyCFunction)py_dsdb_convert_schema_to_openldap, METH_VARARGS,
NULL },
+ { "dsdb_make_schema_global", (PyCFunction)py_dsdb_make_schema_global, METH_VARARGS,
+ NULL },
{ "dom_sid_to_rid", (PyCFunction)py_dom_sid_to_rid, METH_VARARGS,
NULL },
{ "set_debug_level", (PyCFunction)py_set_debug_level, METH_VARARGS,