summaryrefslogtreecommitdiff
path: root/source4/scripting/swig/test
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/swig/test')
-rwxr-xr-xsource4/scripting/swig/test13
1 files changed, 13 insertions, 0 deletions
diff --git a/source4/scripting/swig/test b/source4/scripting/swig/test
new file mode 100755
index 0000000000..479f447860
--- /dev/null
+++ b/source4/scripting/swig/test
@@ -0,0 +1,13 @@
+#!/usr/bin/python
+
+import dcerpc
+import gc
+gc.set_debug(gc.DEBUG_LEAK)
+
+handle = dcerpc.pipe_connect("ncacn_np:win2k3dc",
+ dcerpc.DCERPC_SAMR_UUID, dcerpc.DCERPC_SAMR_VERSION,
+ "win2k3dom", "administrator", "penguin")
+
+connect = {"system_name": "win2k3dc", "access_mask": 12345}
+
+print dcerpc.samr_Connect2(handle, connect)