check that gss_krb5_set_allowable_enctypes works

This commit is contained in:
Love Hornquist Astrand
2009-11-30 17:19:13 -08:00
parent 87d30c0e23
commit 01a1e1baef
2 changed files with 74 additions and 11 deletions

View File

@@ -264,6 +264,7 @@ echo "====== gss-api session key check"
# this will break when oneone invents a cooler enctype then aes256-cts-hmac-sha1-96
coolenctype="aes256-cts-hmac-sha1-96"
limit_enctype="des3-cbc-sha1"
echo "Getting client initial tickets"
${kinit} --password-file=${objdir}/foopassword user1@${R} || \
@@ -277,6 +278,16 @@ ${context} \
--name-type=hostbased-service host@no-aes.test.h5l.se || \
{ exitcode=1 ; echo "test failed"; }
echo "Building context on cred, check if its limited still"
${context} \
--mech-type=krb5 \
--client-name=user1@${R} \
--limit-enctype="${limit_enctype}" \
--mutual-auth \
--name-type=hostbased-service host@no-aes.test.h5l.se || \
{ exitcode=1 ; echo "test failed"; }
echo "====== ok-as-delegate"
echo "Getting client initial tickets"