From 89a05cc5da9a203372f3995acf9c3f47ce8f0d7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 18 Dec 2006 18:03:27 +0000 Subject: [PATCH] test more combination of spnego contexts git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19417 ec53bebd-3082-4978-b11e-865c3cabbd6b --- tests/gss/check-spnego.in | 74 ++++++++++++++++++++++----------------- 1 file changed, 41 insertions(+), 33 deletions(-) diff --git a/tests/gss/check-spnego.in b/tests/gss/check-spnego.in index 376471d77..fd4b5e3de 100644 --- a/tests/gss/check-spnego.in +++ b/tests/gss/check-spnego.in @@ -134,8 +134,8 @@ ${context} \ --name-type=hostbased-service \ host@host.test.h5l.se || \ { exitcode=1 ; echo test failed; } -echo "test failure cases" +echo "test failure cases" ${context} --mech-type=ntlm --ret-mech-type=krb5 \ --name-type=hostbased-service host@host.test.h5l.se 2> /dev/null && \ { exitcode=1 ; echo test failed; } @@ -146,41 +146,49 @@ ${context} --mech-type=krb5 --ret-mech-type=ntlm \ echo "======spnego variants context building" -echo "no NTLM acceptor cred" -NTLM_ACCEPTOR_CCACHE="${cacheds}-no" -${context} --mech-type=spnego \ - --name-type=hostbased-service \ - --ret-mech-type=krb5 \ - host@host.test.h5l.se || \ - { exitcode=1 ; echo test failed; } -NTLM_ACCEPTOR_CCACHE="${cacheds}" +for arg in "" "--mutual" "--delegate" "--mutual --delegate"; do -echo "no NTLM initiator cred" -NTLM_USER_FILE="${srcdir}/ntlm-user-file.txt-no" -${context} --mech-type=spnego \ - --name-type=hostbased-service \ - --ret-mech-type=krb5 \ - host@host.test.h5l.se || \ - { exitcode=1 ; echo test failed; } -NTLM_USER_FILE="${srcdir}/ntlm-user-file.txt" + echo "no NTLM acceptor cred ${arg}" + NTLM_ACCEPTOR_CCACHE="${cacheds}-no" + ${context} --mech-type=spnego \ + $arg \ + --name-type=hostbased-service \ + --ret-mech-type=krb5 \ + host@host.test.h5l.se || \ + { exitcode=1 ; echo test failed; } + NTLM_ACCEPTOR_CCACHE="${cacheds}" -echo "no krb5 acceptor cred" -KRB5_KTNAME="${keytab}-no" -${context} --mech-type=spnego \ - --name-type=hostbased-service \ - --ret-mech-type=ntlm \ - host@host.test.h5l.se || \ - { exitcode=1 ; echo test failed; } -KRB5_KTNAME="${keytab}" + echo "no NTLM initiator cred ${arg}" + NTLM_USER_FILE="${srcdir}/ntlm-user-file.txt-no" + ${context} --mech-type=spnego \ + $arg \ + --name-type=hostbased-service \ + --ret-mech-type=krb5 \ + host@host.test.h5l.se || \ + { exitcode=1 ; echo test failed; } + NTLM_USER_FILE="${srcdir}/ntlm-user-file.txt" -echo "no krb5 initiator cred" -KRB5CCNAME="${cache}-no" -${context} --mech-type=spnego \ - --name-type=hostbased-service \ - --ret-mech-type=ntlm \ - host@host.test.h5l.se || \ - { exitcode=1 ; echo test failed; } -KRB5CCNAME="${cache}" + echo "no krb5 acceptor cred ${arg}" + KRB5_KTNAME="${keytab}-no" + ${context} --mech-type=spnego \ + $arg \ + --name-type=hostbased-service \ + --ret-mech-type=ntlm \ + host@host.test.h5l.se || \ + { exitcode=1 ; echo test failed; } + KRB5_KTNAME="${keytab}" + + echo "no krb5 initiator cred ${arg}" + KRB5CCNAME="${cache}-no" + ${context} --mech-type=spnego \ + $arg \ + --name-type=hostbased-service \ + --ret-mech-type=ntlm \ + host@host.test.h5l.se || \ + { exitcode=1 ; echo test failed; } + KRB5CCNAME="${cache}" + +done trap "" EXIT