From 6351dee4d810bfa20c3a892d0eba3b2ac828e193 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 4 Apr 2011 19:13:17 +1000 Subject: s3-selftest Add testing of kerberos login This uses a pre-calculated credentials cache, that should be valid until 2036. Andrew Bartlett --- source3/selftest/ktest-krb5_ccache | Bin 0 -> 11966 bytes source3/selftest/ktest-secrets.tdb | Bin 0 -> 45056 bytes source3/selftest/tests.py | 19 +++++++++++++++---- 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 source3/selftest/ktest-krb5_ccache create mode 100644 source3/selftest/ktest-secrets.tdb (limited to 'source3/selftest') diff --git a/source3/selftest/ktest-krb5_ccache b/source3/selftest/ktest-krb5_ccache new file mode 100644 index 0000000000..15102226f3 Binary files /dev/null and b/source3/selftest/ktest-krb5_ccache differ diff --git a/source3/selftest/ktest-secrets.tdb b/source3/selftest/ktest-secrets.tdb new file mode 100644 index 0000000000..c09c315288 Binary files /dev/null and b/source3/selftest/ktest-secrets.tdb 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: -- cgit