summaryrefslogtreecommitdiff
path: root/source4/scripting/swig/torture
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-09-14 12:19:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:44 -0500
commit31288d654552736ee96a0c7edbbc0b0cdcf1a3f5 (patch)
tree75516f41196e8fc8b8a8c0b1c07bb9c813961e23 /source4/scripting/swig/torture
parentd203c7899dbdb7b0b2a321215f3c67e6c9320e1c (diff)
downloadsamba-31288d654552736ee96a0c7edbbc0b0cdcf1a3f5.tar.gz
samba-31288d654552736ee96a0c7edbbc0b0cdcf1a3f5.tar.bz2
samba-31288d654552736ee96a0c7edbbc0b0cdcf1a3f5.zip
r2336: Add another conversion function to allow union arms that contain structures
not pointers to structures. Do some renaming of hand-written functions as a result. Include lsa interface before samr interface as samr depends on some lsa structures. Build up a nice hashed index of interfaces, functions, structs and unions. Add test for samr_Connect5() function which contains a union. (This used to be commit 30f068164a5125f84a34f28ed0f2586a2bdec7e4)
Diffstat (limited to 'source4/scripting/swig/torture')
-rwxr-xr-xsource4/scripting/swig/torture/samr.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/source4/scripting/swig/torture/samr.py b/source4/scripting/swig/torture/samr.py
index d7edbbcef5..ca9c7e9597 100755
--- a/source4/scripting/swig/torture/samr.py
+++ b/source4/scripting/swig/torture/samr.py
@@ -42,6 +42,19 @@ def test_Connect(handle):
result = dcerpc.samr_Connect4(pipe, r)
dcerpc.samr_Close(pipe, result)
+
+ print 'testing samr_Connect5'
+
+ r = {}
+ r['system_name'] = None
+ r['access_mask'] = 0x02000000
+ r['level'] = 1
+ r['info'] = {}
+ r['info']['info1'] = {}
+ r['info']['info1']['unknown1'] = 0
+ r['info']['info1']['unknown2'] = 0
+
+ result = dcerpc.samr_Connect5(pipe, r)
# Connect to server