summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-04-04 19:13:17 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-04-04 19:48:57 +1000
commit6351dee4d810bfa20c3a892d0eba3b2ac828e193 (patch)
tree85d70f906fc1a8820ad1bbd289bfbb7db1c8f84a /source3
parent55134c9a9e4a47c6a8ed89ef10c95c0fa0d4daaf (diff)
downloadsamba-6351dee4d810bfa20c3a892d0eba3b2ac828e193.tar.gz
samba-6351dee4d810bfa20c3a892d0eba3b2ac828e193.tar.bz2
samba-6351dee4d810bfa20c3a892d0eba3b2ac828e193.zip
s3-selftest Add testing of kerberos login
This uses a pre-calculated credentials cache, that should be valid until 2036. Andrew Bartlett
Diffstat (limited to 'source3')
-rw-r--r--source3/selftest/ktest-krb5_ccachebin0 -> 11966 bytes
-rw-r--r--source3/selftest/ktest-secrets.tdbbin0 -> 45056 bytes
-rwxr-xr-xsource3/selftest/tests.py19
3 files changed, 15 insertions, 4 deletions
diff --git a/source3/selftest/ktest-krb5_ccache b/source3/selftest/ktest-krb5_ccache
new file mode 100644
index 0000000000..15102226f3
--- /dev/null
+++ b/source3/selftest/ktest-krb5_ccache
Binary files differ
diff --git a/source3/selftest/ktest-secrets.tdb b/source3/selftest/ktest-secrets.tdb
new file mode 100644
index 0000000000..c09c315288
--- /dev/null
+++ b/source3/selftest/ktest-secrets.tdb
Binary files differ
diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py
index 9ddb164b4d..826b84fa3b 100755
--- a/source3/selftest/tests.py
+++ b/source3/selftest/tests.py
@@ -207,12 +207,23 @@ if sub.returncode == 0:
smb_options = ["", ",smb2"]
endianness_options = ["", ",bigendian"]
for z in smb_options:
- for e in endianness_options:
- for a in auth_options:
- for s in signseal_options:
- binding_string = "ncacn_np:$SERVER_IP[%s%s%s%s]" % (a, s, z, e)
+ for s in signseal_options:
+ for e in endianness_options:
+ for a in auth_options:
+ binding_string = "ncacn_np:$SERVER[%s%s%s%s]" % (a, s, z, e)
options = binding_string + " -U$USERNAME%$PASSWORD"
plansmbtorturetestsuite(test, "dc", options, 'over ncacn_np with [%s%s%s%s] ' % (a, s, z, e))
+
+ # We should try more combinations in future, but this is all
+ # the pre-calculated credentials cache supports at the moment
+ e = ""
+ a = ""
+ binding_string = "ncacn_np:$SERVER[%s%s%s%s]" % (a, s, z, e)
+ options = binding_string + " -k yes --krb5-ccache=$PREFIX/ktest/krb5_ccache"
+ plansmbtorturetestsuite(test, "ktest", options, 'over kerberos ncacn_np with [%s%s%s%s] ' % (a, s, z, e))
+
+
+
for e in endianness_options:
for a in auth_options:
for s in signseal_options: