From 5cf6c42658755f0a126a5bd6cdd9f215779b75a8 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 8 Apr 2008 03:23:53 +0200 Subject: Add python bindings for drsuapi. (This used to be commit ba3f0312f0dda47fb16ed9b8eee3750b209e0dad) --- source4/librpc/config.mk | 4 ++++ source4/scripting/python/modules.c | 1 + source4/scripting/python/pyrpc.h | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) (limited to 'source4') 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 -- cgit