summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-04-08 03:23:53 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-04-08 03:23:53 +0200
commit5cf6c42658755f0a126a5bd6cdd9f215779b75a8 (patch)
treeb4eb199e9048587bcdc9841a357d7385d44c66b6 /source4
parentf253c3ad91d66aeb594e8088c462257277748263 (diff)
downloadsamba-5cf6c42658755f0a126a5bd6cdd9f215779b75a8.tar.gz
samba-5cf6c42658755f0a126a5bd6cdd9f215779b75a8.tar.bz2
samba-5cf6c42658755f0a126a5bd6cdd9f215779b75a8.zip
Add python bindings for drsuapi.
(This used to be commit ba3f0312f0dda47fb16ed9b8eee3750b209e0dad)
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/config.mk4
-rw-r--r--source4/scripting/python/modules.c1
-rw-r--r--source4/scripting/python/pyrpc.h2
3 files changed, 6 insertions, 1 deletions
diff --git a/source4/librpc/config.mk b/source4/librpc/config.mk
index 7a5d47f682..b6f3fdac52 100644
--- a/source4/librpc/config.mk
+++ b/source4/librpc/config.mk
@@ -662,5 +662,9 @@ PRIVATE_DEPENDENCIES = RPC_NDR_DFS
OBJ_FILES = gen_ndr/py_unixinfo.o
PRIVATE_DEPENDENCIES = RPC_NDR_UNIXINFO
+[PYTHON::python_drsuapi]
+OBJ_FILES = gen_ndr/py_drsuapi.o
+PRIVATE_DEPENDENCIES = RPC_NDR_DRSUAPI
+
[PYTHON::python_dcerpc_security]
OBJ_FILES = gen_ndr/py_security.o
diff --git a/source4/scripting/python/modules.c b/source4/scripting/python/modules.c
index 603c1df21c..ba85994636 100644
--- a/source4/scripting/python/modules.c
+++ b/source4/scripting/python/modules.c
@@ -36,6 +36,7 @@ extern void inituuid(void);
extern void init_net(void);
extern void initecho(void);
extern void initdfs(void);
+extern void initdrsuapi(void);
extern void initwinreg(void);
extern void initepmapper(void);
extern void initinitshutdown(void);
diff --git a/source4/scripting/python/pyrpc.h b/source4/scripting/python/pyrpc.h
index 3a5d235cfc..f4d0f37c39 100644
--- a/source4/scripting/python/pyrpc.h
+++ b/source4/scripting/python/pyrpc.h
@@ -26,7 +26,7 @@
#define dom_sid2_Type dom_sid_Type
#define dom_sid28_Type dom_sid_Type
#define dom_sid2_Check dom_sid_Check
-#define dom_sid28_Check dom_sid28_Check
+#define dom_sid28_Check dom_sid_Check
/* This macro is only provided by Python >= 2.3 */
#ifndef PyAPI_DATA