summaryrefslogtreecommitdiff
path: root/source4/scripting/swig/torture
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-04-05 07:58:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:26 -0500
commite1e8928840b632297e3cbbd19aeef5e075ff7798 (patch)
tree3ab3b7cc29bd773cc041b797a440d3faa433fd23 /source4/scripting/swig/torture
parentcf52d62ec998ae30f4460e75817b0503894aff5d (diff)
downloadsamba-e1e8928840b632297e3cbbd19aeef5e075ff7798.tar.gz
samba-e1e8928840b632297e3cbbd19aeef5e075ff7798.tar.bz2
samba-e1e8928840b632297e3cbbd19aeef5e075ff7798.zip
r6208: Add cli_credentials support for swig wrappers. For the moment it
only does anonymous connections. (This used to be commit b09a4723539235fc924134aa50fc4aed040afb33)
Diffstat (limited to 'source4/scripting/swig/torture')
-rwxr-xr-xsource4/scripting/swig/torture/pytorture2
-rwxr-xr-xsource4/scripting/swig/torture/torture_samr.py5
2 files changed, 3 insertions, 4 deletions
diff --git a/source4/scripting/swig/torture/pytorture b/source4/scripting/swig/torture/pytorture
index fd4a92eeb4..e0123447e8 100755
--- a/source4/scripting/swig/torture/pytorture
+++ b/source4/scripting/swig/torture/pytorture
@@ -48,4 +48,4 @@ for test in args:
if not hasattr(module, 'runtests'):
print 'Module "%s" does not have a runtests function' % test
- module.runtests(binding, domain, username, password)
+ module.runtests(binding, (domain, username, password))
diff --git a/source4/scripting/swig/torture/torture_samr.py b/source4/scripting/swig/torture/torture_samr.py
index 929420695d..2064d28044 100755
--- a/source4/scripting/swig/torture/torture_samr.py
+++ b/source4/scripting/swig/torture/torture_samr.py
@@ -721,13 +721,12 @@ def test_EnumDomains(pipe, connect_handle):
for domain in connect_handle.EnumDomains():
test_LookupDomain(pipe, connect_handle, domain)
-def runtests(binding, domain, username, password):
+def runtests(binding, creds):
print 'Testing SAMR pipe'
pipe = dcerpc.pipe_connect(binding,
- dcerpc.DCERPC_SAMR_UUID, int(dcerpc.DCERPC_SAMR_VERSION),
- domain, username, password)
+ dcerpc.DCERPC_SAMR_UUID, int(dcerpc.DCERPC_SAMR_VERSION), creds)
handle = test_Connect(pipe)