git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22756 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-03-24 12:08:35 +00:00
parent 5d35e96f9f
commit def5e96e15

View File

@@ -376,13 +376,19 @@ ${kgetcred_imp} --impersonate=bar@${R} foo@${R} 2>/dev/null && \
echo "test constrained delegation"; > messages.log echo "test constrained delegation"; > messages.log
${kgetcred_imp} --forward --impersonate=bar@${R} ${ps} || \ ${kgetcred_imp} --forward --impersonate=bar@${R} ${ps} || \
{ ec=1 ; eval "${testfailed}"; } { ec=1 ; eval "${testfailed}"; }
${kgetcred} --out-cache=${o2cache} --delegation-credential-cache=${ocache} ${server}@${R} || \ ${kgetcred} \
--out-cache=${o2cache} \
--delegation-credential-cache=${ocache} \
${server}@${R} || \
{ ec=1 ; eval "${testfailed}"; } { ec=1 ; eval "${testfailed}"; }
echo " try using the credential" echo " try using the credential"
./ap-req ${server}@${R} ${keytab} ${o2cache} || \ ./ap-req ${server}@${R} ${keytab} ${o2cache} || \
{ ec=1 ; eval "${testfailed}"; } { ec=1 ; eval "${testfailed}"; }
echo " negative check" echo " negative check"
${kgetcred} --out-cache=${o2cache} --delegation-credential-cache=${ocache} bar@${R} 2>/dev/null && \ ${kgetcred} \
--out-cache=${o2cache} \
--delegation-credential-cache=${ocache} \
bar@${R} 2>/dev/null && \
{ ec=1 ; eval "${testfailed}"; } { ec=1 ; eval "${testfailed}"; }
echo "test constrained delegation impersonation (non forward)"; > messages.log echo "test constrained delegation impersonation (non forward)"; > messages.log