From a1ff967f91fd3dd58943d56c7efc5a354dacbea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 17 Oct 2006 20:00:53 +0000 Subject: [PATCH] More name tests. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18542 ec53bebd-3082-4978-b11e-865c3cabbd6b --- tests/gss/check-context.in | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/tests/gss/check-context.in b/tests/gss/check-context.in index ca067b710..5530bf073 100644 --- a/tests/gss/check-context.in +++ b/tests/gss/check-context.in @@ -69,8 +69,11 @@ ${kadmin} \ --realm-max-renewable-life=1month \ ${R} || exit 1 +# add both lucid and lucid.example.org to simulate aliases ${kadmin} add -p p1 --use-defaults host/lucid.example.org@${R} || exit 1 ${kadmin} ext -k ${keytab} host/lucid.example.org@${R} || exit 1 +${kadmin} add -p p1 --use-defaults host/lucid@${R} || exit 1 +${kadmin} ext -k ${keytab} host/lucid@${R} || exit 1 ${kadmin} add -p u1 --use-defaults user1@${R} || exit 1 @@ -95,13 +98,30 @@ echo "Getting client initial tickets" ${kinit} --password-file=${objdir}/foopassword user1@${R} || exitcode=1 echo plain -${context} host/lucid.example.org@${R} || { exitcode=1 ; echo test failed; } +${context} --name-type=hostbased-service host@lucid.example.org || \ + { exitcode=1 ; echo test failed; } +echo "plain (krb5)" +${context} --name-type=krb5-principal-name host/lucid.example.org@${R} || \ + { exitcode=1 ; echo test failed; } +echo "plain (krb5 realmless)" +${context} --name-type=krb5-principal-name host/lucid.example.org || \ + { exitcode=1 ; echo test failed; } echo "dns canon on (long name)" -${context} --dns-canon host/lucid.example.org@${R} || \ +${context} --dns-canon host@lucid.example.org || \ { exitcode=1 ; echo test failed; } echo "dns canon off (long name)" -${context} --no-dns-canon host/lucid.example.org@${R} || \ +${context} --no-dns-canon host@lucid.example.org || \ { exitcode=1 ; echo test failed; } +echo "dns canon off (short name)" +${context} --no-dns-canon host@lucid || \ + { exitcode=1 ; echo test failed; } +echo "dns canon off (short name, krb5)" +${context} --no-dns-canon --name-type=krb5-principal-name host/lucid@${R} || \ + { exitcode=1 ; echo test failed; } +echo "dns canon off (short name, krb5)" +${context} --no-dns-canon --name-type=krb5-principal-name host/lucid || \ + { exitcode=1 ; echo test failed; } + echo "killing kdc (${kdcpid})" kill ${kdcpid} 2> /dev/null