test more combination of spnego contexts

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19417 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-12-18 18:03:27 +00:00
parent 3ac5851185
commit 89a05cc5da

View File

@@ -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