summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-01-14 20:14:53 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-01-14 20:14:53 +0100
commitd869de531c9f6b81c7eca43c3bfaab294c14cab1 (patch)
tree95accef26c052c7f0ef338e7611169fce020aa44 /source4
parent1530d7c3b0d02a2b75c1ee393209f69473f3c4af (diff)
downloadsamba-d869de531c9f6b81c7eca43c3bfaab294c14cab1.tar.gz
samba-d869de531c9f6b81c7eca43c3bfaab294c14cab1.tar.bz2
samba-d869de531c9f6b81c7eca43c3bfaab294c14cab1.zip
python: Enable building of the wkssvc python bindings.
(This used to be commit 7a00d48a478be84e9f38c5e6cb57739063d0d613)
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/config.mk4
-rw-r--r--source4/scripting/bin/epdump.py24
-rw-r--r--source4/scripting/python/modules.c1
3 files changed, 29 insertions, 0 deletions
diff --git a/source4/librpc/config.mk b/source4/librpc/config.mk
index 78e90b464d..8774f2fd17 100644
--- a/source4/librpc/config.mk
+++ b/source4/librpc/config.mk
@@ -633,5 +633,9 @@ PRIVATE_DEPENDENCIES = RPC_NDR_SVCCTL
OBJ_FILES = gen_ndr/py_lsa.o
PRIVATE_DEPENDENCIES = RPC_NDR_LSA
+[PYTHON::python_wkssvc]
+OBJ_FILES = gen_ndr/py_wkssvc.o
+PRIVATE_DEPENDENCIES = RPC_NDR_WKSSVC
+
[PYTHON::python_dcerpc_security]
OBJ_FILES = gen_ndr/py_security.o
diff --git a/source4/scripting/bin/epdump.py b/source4/scripting/bin/epdump.py
new file mode 100644
index 0000000000..15dee33774
--- /dev/null
+++ b/source4/scripting/bin/epdump.py
@@ -0,0 +1,24 @@
+#!/usr/bin/python
+
+# Unix SMB/CIFS implementation.
+# Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2008
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+import sys
+
+if len(sys.argv) < 2:
+ print "Usage: %s <binding-string>" % sys.argv[0]
+ sys.exit(1)
diff --git a/source4/scripting/python/modules.c b/source4/scripting/python/modules.c
index dc6e79fe1a..b2dd50b507 100644
--- a/source4/scripting/python/modules.c
+++ b/source4/scripting/python/modules.c
@@ -45,6 +45,7 @@ extern void initsamr(void);
static void initdcerpc_security(void) {}
extern void initlsa(void);
extern void initsvcctl(void);
+extern void initwkssvc(void);
static struct _inittab py_modules[] = { STATIC_LIBPYTHON_MODULES };