From 1901f0475abbd3bfb42f1dc565091cde8cbd8f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 4 Jan 2007 11:06:57 +0000 Subject: [PATCH] Verify PAC on server end too. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19673 ec53bebd-3082-4978-b11e-865c3cabbd6b --- tests/plugin/check-pac.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/plugin/check-pac.in b/tests/plugin/check-pac.in index b76643494..b64b9142b 100644 --- a/tests/plugin/check-pac.in +++ b/tests/plugin/check-pac.in @@ -77,6 +77,7 @@ ${kadmin} \ ${kadmin} add -p foo --use-defaults foo@${R} || exit 1 ${kadmin} add -p bar --use-defaults ${server}@${R} || exit 1 +${kadmin} ext -k ${keytab} ${server}@${R} || exit 1 echo "Doing database check" ${kadmin} check ${R} || exit 1 @@ -98,12 +99,15 @@ trap "kill ${kdcpid}; echo signal killing kdc; exit 1;" EXIT ec=0 -echo "Getting client initial tickets"; +echo "Getting client initial tickets"; > messages.log ${kinit} --password-file=${objdir}/foopassword foo@$R || \ { ec=1 ; eval "${testfailed}"; } -echo "Getting tickets" +echo "Getting tickets" ; > messages.log ${kgetcred} ${server}@${R} || { ec=1 ; eval "${testfailed}"; } +echo "Verify PAC on server"; > messages.log +../kdc/ap-req --verify-pac ${server}@${R} ${keytab} ${cache} || \ + { ec=1 ; eval "${testfailed}"; } ${kdestroy} echo "killing kdc (${kdcpid})"