summaryrefslogtreecommitdiff
path: root/source4/scripting/swig/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/swig/torture')
-rwxr-xr-xsource4/scripting/swig/torture/winreg.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/source4/scripting/swig/torture/winreg.py b/source4/scripting/swig/torture/winreg.py
new file mode 100755
index 0000000000..4f3b592065
--- /dev/null
+++ b/source4/scripting/swig/torture/winreg.py
@@ -0,0 +1,23 @@
+#!/usr/bin/python
+
+import dcerpc
+
+def test_OpenHKLM(pipe):
+
+ r = {}
+ r['unknown'] = {}
+ r['unknown']['unknown0'] = 0x84e0
+ r['unknown']['unknown1'] = 0
+ r['access_required'] = 0x02000000
+
+ dcerpc.winreg_OpenHKLM(pipe, r)
+
+def runtests(binding, domain, username, password):
+
+ print 'Testing WINREG pipe'
+
+ pipe = dcerpc.pipe_connect(binding,
+ dcerpc.DCERPC_WINREG_UUID, dcerpc.DCERPC_WINREG_VERSION,
+ domain, username, password)
+
+ test_OpenHKLM(pipe)