summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-12-21 18:46:59 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-12-21 18:46:59 +0100
commit38a4749d2cf9266164527e2b3c14bc7e47b72326 (patch)
tree292e84429e0513f739c2ee95b17d512d99ee3363 /source4/librpc
parentf2b4aa82e0febd6528eb8231ac14d845b8aa80d0 (diff)
downloadsamba-38a4749d2cf9266164527e2b3c14bc7e47b72326.tar.gz
samba-38a4749d2cf9266164527e2b3c14bc7e47b72326.tar.bz2
samba-38a4749d2cf9266164527e2b3c14bc7e47b72326.zip
Allow providing extra module-level Python functions.
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/ndr/py_security.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/librpc/ndr/py_security.c b/source4/librpc/ndr/py_security.c
index a7cb0515cf..d79ad58f7d 100644
--- a/source4/librpc/ndr/py_security.c
+++ b/source4/librpc/ndr/py_security.c
@@ -301,7 +301,12 @@ static PyObject *py_random_sid(PyObject *self)
sid = dom_sid_parse_talloc(NULL, str);
talloc_free(str);
- ret = py_talloc_import(&PyDomSidType, sid);
+ ret = py_talloc_import(&dom_sid_Type, sid);
talloc_free(sid);
return ret;
}
+
+#define PY_MOD_SECURITY_EXTRA_METHODS \
+ { "random_sid", (PyCFunction)py_random_sid, METH_NOARGS, NULL }, \
+ { "privilege_id", (PyCFunction)py_privilege_id, METH_VARARGS, NULL }, \
+ { "privilege_name", (PyCFunction)py_privilege_name, METH_VARARGS, NULL },