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:
@@ -134,8 +134,8 @@ ${context} \
|
|||||||
--name-type=hostbased-service \
|
--name-type=hostbased-service \
|
||||||
host@host.test.h5l.se || \
|
host@host.test.h5l.se || \
|
||||||
{ exitcode=1 ; echo test failed; }
|
{ exitcode=1 ; echo test failed; }
|
||||||
echo "test failure cases"
|
|
||||||
|
|
||||||
|
echo "test failure cases"
|
||||||
${context} --mech-type=ntlm --ret-mech-type=krb5 \
|
${context} --mech-type=ntlm --ret-mech-type=krb5 \
|
||||||
--name-type=hostbased-service host@host.test.h5l.se 2> /dev/null && \
|
--name-type=hostbased-service host@host.test.h5l.se 2> /dev/null && \
|
||||||
{ exitcode=1 ; echo test failed; }
|
{ exitcode=1 ; echo test failed; }
|
||||||
@@ -146,41 +146,49 @@ ${context} --mech-type=krb5 --ret-mech-type=ntlm \
|
|||||||
|
|
||||||
echo "======spnego variants context building"
|
echo "======spnego variants context building"
|
||||||
|
|
||||||
echo "no NTLM acceptor cred"
|
for arg in "" "--mutual" "--delegate" "--mutual --delegate"; do
|
||||||
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}"
|
|
||||||
|
|
||||||
echo "no NTLM initiator cred"
|
echo "no NTLM acceptor cred ${arg}"
|
||||||
NTLM_USER_FILE="${srcdir}/ntlm-user-file.txt-no"
|
NTLM_ACCEPTOR_CCACHE="${cacheds}-no"
|
||||||
${context} --mech-type=spnego \
|
${context} --mech-type=spnego \
|
||||||
--name-type=hostbased-service \
|
$arg \
|
||||||
--ret-mech-type=krb5 \
|
--name-type=hostbased-service \
|
||||||
host@host.test.h5l.se || \
|
--ret-mech-type=krb5 \
|
||||||
{ exitcode=1 ; echo test failed; }
|
host@host.test.h5l.se || \
|
||||||
NTLM_USER_FILE="${srcdir}/ntlm-user-file.txt"
|
{ exitcode=1 ; echo test failed; }
|
||||||
|
NTLM_ACCEPTOR_CCACHE="${cacheds}"
|
||||||
|
|
||||||
echo "no krb5 acceptor cred"
|
echo "no NTLM initiator cred ${arg}"
|
||||||
KRB5_KTNAME="${keytab}-no"
|
NTLM_USER_FILE="${srcdir}/ntlm-user-file.txt-no"
|
||||||
${context} --mech-type=spnego \
|
${context} --mech-type=spnego \
|
||||||
--name-type=hostbased-service \
|
$arg \
|
||||||
--ret-mech-type=ntlm \
|
--name-type=hostbased-service \
|
||||||
host@host.test.h5l.se || \
|
--ret-mech-type=krb5 \
|
||||||
{ exitcode=1 ; echo test failed; }
|
host@host.test.h5l.se || \
|
||||||
KRB5_KTNAME="${keytab}"
|
{ exitcode=1 ; echo test failed; }
|
||||||
|
NTLM_USER_FILE="${srcdir}/ntlm-user-file.txt"
|
||||||
|
|
||||||
echo "no krb5 initiator cred"
|
echo "no krb5 acceptor cred ${arg}"
|
||||||
KRB5CCNAME="${cache}-no"
|
KRB5_KTNAME="${keytab}-no"
|
||||||
${context} --mech-type=spnego \
|
${context} --mech-type=spnego \
|
||||||
--name-type=hostbased-service \
|
$arg \
|
||||||
--ret-mech-type=ntlm \
|
--name-type=hostbased-service \
|
||||||
host@host.test.h5l.se || \
|
--ret-mech-type=ntlm \
|
||||||
{ exitcode=1 ; echo test failed; }
|
host@host.test.h5l.se || \
|
||||||
KRB5CCNAME="${cache}"
|
{ 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
|
trap "" EXIT
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user