diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-01-03 15:57:40 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-01-05 17:17:28 +0100 |
commit | 7b4f2fad544137db3399e0daa04dd154ba10357d (patch) | |
tree | 807cc287318eb80245f636d0c8000e14df0542cd /source3/selftest | |
parent | 73ed88df350c0e307fcf7402be12170c22f2227e (diff) | |
download | samba-7b4f2fad544137db3399e0daa04dd154ba10357d.tar.gz samba-7b4f2fad544137db3399e0daa04dd154ba10357d.tar.bz2 samba-7b4f2fad544137db3399e0daa04dd154ba10357d.zip |
s3-selftest: Add test for rpcclient, including kerberos authentication
Some knownfail entries are added for things the currently fail.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/selftest')
-rwxr-xr-x | source3/selftest/tests.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py index 2111530903..61bd1bb268 100755 --- a/source3/selftest/tests.py +++ b/source3/selftest/tests.py @@ -251,7 +251,7 @@ if sub.returncode == 0: test = 'rpc.lsa.lookupsids' - auth_options = ["", "ntlm", "spnego" ] + auth_options = ["", "ntlm", "spnego", "spnego,ntlm" ] signseal_options = ["", ",connect", ",sign", ",seal"] smb_options = ["", ",smb2"] endianness_options = ["", ",bigendian"] @@ -262,6 +262,8 @@ if sub.returncode == 0: binding_string = "ncacn_np:$SERVER[%s%s%s%s]" % (a, s, z, e) options = binding_string + " -U$USERNAME%$PASSWORD" plansmbtorturetestsuite(test, "s3dc", options, 'over ncacn_np with [%s%s%s%s] ' % (a, s, z, e)) + plantestsuite("samba3.blackbox.rpcclient over ncacn_np with [%s%s%s%s] " % (a, s, z, e), "s3dc:local", [os.path.join(samba3srcdir, "script/tests/test_rpcclient.sh"), + "none", options, configuration]) # We should try more combinations in future, but this is all # the pre-calculated credentials cache supports at the moment @@ -274,6 +276,13 @@ if sub.returncode == 0: options = binding_string + " -k yes --krb5-ccache=$PREFIX/ktest/krb5_ccache-3" plansmbtorturetestsuite(test, "ktest", options, 'over kerberos ncacn_np with [%s%s%s%s] ' % (a, s, z, e)) + auth_options2 = ["krb5", "spnego,krb5"] + for a in auth_options2: + binding_string = "ncacn_np:$SERVER[%s%s%s%s]" % (a, s, z, e) + + plantestsuite("samba3.blackbox.rpcclient over kerberos with ncacn_np with [%s%s%s%s] " % (a, s, z, e), "ktest:local", [os.path.join(samba3srcdir, "script/tests/test_rpcclient.sh"), + "$PREFIX/ktest/krb5_ccache-3", binding_string, "-k", configuration]) + for e in endianness_options: |