From 4f66e515c10ef1b027484d044a24370e074ed919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 4 Dec 2007 20:05:02 +0000 Subject: [PATCH] test kdigest digest-probe command. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22159 ec53bebd-3082-4978-b11e-865c3cabbd6b --- tests/gss/check-ntlm.in | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/tests/gss/check-ntlm.in b/tests/gss/check-ntlm.in index 5cd839c8e..99bdb24bb 100644 --- a/tests/gss/check-ntlm.in +++ b/tests/gss/check-ntlm.in @@ -53,6 +53,7 @@ kinit="${TESTS_ENVIRONMENT} ../../kuser/kinit -c $cache --no-afslog" kinitds="${TESTS_ENVIRONMENT} ../../kuser/kinit -c $cacheds --no-afslog" kadmin="${TESTS_ENVIRONMENT} ../../kadmin/kadmin -l -r $R" kdc="${TESTS_ENVIRONMENT} ../../kdc/kdc --addresses=localhost -P $port" +kdigest="${TESTS_ENVIRONMENT} ../../kuser/kdigest" context="${TESTS_ENVIRONMENT} ../../lib/gssapi/test_context" @@ -120,10 +121,16 @@ ${kinit} --password-file=${objdir}/foopassword user1@${R} || exitcode=1 echo "Getting digestserver initial tickets" ${kinitds} --password-file=${objdir}/barpassword digestserver@${R} || exitcode=1 +echo "======probe" +KRB5CCNAME="$cacheds" + + ${kdigest} digest-probe --realm=${R} > /dev/null|| \ + { exitcode=1; echo "test failed"; } + echo "======context building ntlm" -NTLM_USER_FILE="${srcdir}/ntlm-user-file.txt-no" \ -KRB5CCNAME="$cache" \ +NTLM_USER_FILE="${srcdir}/ntlm-user-file.txt-no" +KRB5CCNAME="$cache" echo "no NTLM initiator creds" ${context} --mech-type=ntlm \ @@ -131,7 +138,7 @@ ${context} --mech-type=ntlm \ --name-type=hostbased-service \ --ret-mech-type=ntlm \ host@host.test.h5l.se 2> /dev/null && \ - { exitcode=1 ; echo test failed; } + { exitcode=1 ; echo "test failed"; } echo "Getting client initial tickets (with ntlm creds)" ${kinit} --password-file=${objdir}/foopassword --ntlm-domain=TEST user1@${R} || exitcode=1 @@ -142,7 +149,7 @@ ${context} --mech-type=ntlm \ --name-type=hostbased-service \ --ret-mech-type=ntlm \ host@host.test.h5l.se || \ - { exitcode=1 ; echo test failed; } + { exitcode=1 ; echo "test failed"; } echo "NTLM initiator krb5 creds (getverifymic, wrapunwrap)" ${context} --mech-type=ntlm \ @@ -151,7 +158,7 @@ ${context} --mech-type=ntlm \ --ret-mech-type=ntlm \ --getverifymic --wrapunwrap \ host@host.test.h5l.se || \ - { exitcode=1 ; echo test failed; } + { exitcode=1 ; echo "test failed"; } trap "" EXIT