From 8b11693d7774fd6f33afa386c15b1eda7cbd36cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 4 Jan 2007 13:23:35 +0000 Subject: [PATCH] test explicit requested pac and explicit negative requested pac. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19688 ec53bebd-3082-4978-b11e-865c3cabbd6b --- tests/plugin/check-pac.in | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/tests/plugin/check-pac.in b/tests/plugin/check-pac.in index b64b9142b..aaa2fb01f 100644 --- a/tests/plugin/check-pac.in +++ b/tests/plugin/check-pac.in @@ -47,7 +47,7 @@ R=TEST.H5L.SE port=8888 -kadmin="${TESTS_ENVIRONMENT} ../../kadmin/kadmin -l -r $R" +kadmin="${TESTS_ENVIRONMENT} ../../kadmin/kadmin -l -r ${R}" kdc="${TESTS_ENVIRONMENT} ../../kdc/kdc --addresses=localhost -P $port" server=host/datan.test.h5l.se @@ -100,16 +100,36 @@ trap "kill ${kdcpid}; echo signal killing kdc; exit 1;" EXIT ec=0 echo "Getting client initial tickets"; > messages.log -${kinit} --password-file=${objdir}/foopassword foo@$R || \ +${kinit} --password-file=${objdir}/foopassword foo@${R} || \ { ec=1 ; eval "${testfailed}"; } 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 "Getting client initial tickets (pag)"; > messages.log +${kinit} --request-pac --password-file=${objdir}/foopassword foo@${R} || \ + { ec=1 ; eval "${testfailed}"; } +echo "Getting tickets" ; > messages.log +${kgetcred} ${server}@${R} || { ec=1 ; eval "${testfailed}"; } +echo "Verify PAC on server (pag)"; > messages.log +../kdc/ap-req --verify-pac ${server}@${R} ${keytab} ${cache} || \ + { ec=1 ; eval "${testfailed}"; } +${kdestroy} + +echo "Getting client initial tickets (no pag)"; > messages.log +${kinit} --no-request-pac --password-file=${objdir}/foopassword foo@${R} || \ + { ec=1 ; eval "${testfailed}"; } +echo "Getting tickets" ; > messages.log +${kgetcred} ${server}@${R} || { ec=1 ; eval "${testfailed}"; } +echo "Verify PAC on server (no pag)"; > messages.log +../kdc/ap-req --verify-pac ${server}@${R} ${keytab} ${cache} 2> /dev/null && \ + { ec=1 ; eval "${testfailed}"; } +${kdestroy} + + echo "killing kdc (${kdcpid})" kill $kdcpid || exit 1