aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/can/check-can.in2
-rw-r--r--tests/db/add-modify-delete.in2
-rw-r--r--tests/db/check-aliases.in2
-rw-r--r--tests/db/loaddump-db.in2
-rw-r--r--tests/gss/check-basic.in2
-rw-r--r--tests/gss/check-context.in2
-rw-r--r--tests/gss/check-gssmask.in2
-rw-r--r--tests/gss/check-ntlm.in2
-rw-r--r--tests/gss/check-spnego.in2
-rw-r--r--tests/kdc/check-canon.in2
-rw-r--r--tests/kdc/check-cc.in2
-rw-r--r--tests/kdc/check-delegation.in2
-rw-r--r--tests/kdc/check-des.in2
-rw-r--r--tests/kdc/check-digest.in2
-rw-r--r--tests/kdc/check-fast.in2
-rw-r--r--tests/kdc/check-hdb-mitdb.in4
-rw-r--r--tests/kdc/check-iprop.in6
-rw-r--r--tests/kdc/check-kadmin.in2
-rw-r--r--tests/kdc/check-kdc.in37
-rw-r--r--tests/kdc/check-keys.in2
-rw-r--r--tests/kdc/check-kinit.in2
-rw-r--r--tests/kdc/check-kpasswdd.in4
-rw-r--r--tests/kdc/check-pkinit.in2
-rw-r--r--tests/kdc/check-referral.in2
-rw-r--r--tests/kdc/check-tester.in2
-rw-r--r--tests/kdc/check-uu.in2
-rw-r--r--tests/ldap/check-ldap.in2
-rw-r--r--tests/plugin/check-pac.in2
28 files changed, 66 insertions, 33 deletions
diff --git a/tests/can/check-can.in b/tests/can/check-can.in
index e168f97efca8..50d01b8d84fb 100644
--- a/tests/can/check-can.in
+++ b/tests/can/check-can.in
@@ -41,7 +41,7 @@ env_setup="@env_setup@"
. ${env_setup}
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
${have_db} || exit 77
./test_can TEST.H5L.SE heim-0.8 || exit 1
diff --git a/tests/db/add-modify-delete.in b/tests/db/add-modify-delete.in
index 278a63596221..7f3a81908810 100644
--- a/tests/db/add-modify-delete.in
+++ b/tests/db/add-modify-delete.in
@@ -41,7 +41,7 @@ EGREP="@EGREP@"
default_db_type=@default_db_type@
db_type=${1:-${default_db_type}}
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
./have-db || exit 77
R=EXAMPLE.ORG
diff --git a/tests/db/check-aliases.in b/tests/db/check-aliases.in
index dbef36dfbed6..5601905e4195 100644
--- a/tests/db/check-aliases.in
+++ b/tests/db/check-aliases.in
@@ -41,7 +41,7 @@ db_type=${1:-${default_db_type}}
testfailed="echo test failed; cat messages.log; exit 1"
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
../db/have-db || exit 77
R=TEST.H5L.SE
diff --git a/tests/db/loaddump-db.in b/tests/db/loaddump-db.in
index 472580aa942b..00d81861c863 100644
--- a/tests/db/loaddump-db.in
+++ b/tests/db/loaddump-db.in
@@ -37,7 +37,7 @@
srcdir="@srcdir@"
objdir="@objdir@"
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
./have-db || exit 77
R=EXAMPLE.ORG
diff --git a/tests/gss/check-basic.in b/tests/gss/check-basic.in
index c8064c010e96..bd219b5e06c8 100644
--- a/tests/gss/check-basic.in
+++ b/tests/gss/check-basic.in
@@ -40,7 +40,7 @@ objdir="@objdir@"
. ${env_setup}
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
../db/have-db || exit 77
R=TEST.H5L.SE
diff --git a/tests/gss/check-context.in b/tests/gss/check-context.in
index 32f19d141b8a..ba06aaa02e85 100644
--- a/tests/gss/check-context.in
+++ b/tests/gss/check-context.in
@@ -40,7 +40,7 @@ objdir="@objdir@"
. ${env_setup}
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
../db/have-db || exit 77
R=TEST.H5L.SE
diff --git a/tests/gss/check-gssmask.in b/tests/gss/check-gssmask.in
index c7b7d6f53a75..de806b5977ae 100644
--- a/tests/gss/check-gssmask.in
+++ b/tests/gss/check-gssmask.in
@@ -40,7 +40,7 @@ objdir="@objdir@"
. ${env_setup}
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
../db/have-db || exit 77
R=TEST.H5L.SE
diff --git a/tests/gss/check-ntlm.in b/tests/gss/check-ntlm.in
index 5398b595b1e5..6e03b012f738 100644
--- a/tests/gss/check-ntlm.in
+++ b/tests/gss/check-ntlm.in
@@ -40,7 +40,7 @@ objdir="@objdir@"
. ${env_setup}
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
../db/have-db || exit 77
R=TEST.H5L.SE
diff --git a/tests/gss/check-spnego.in b/tests/gss/check-spnego.in
index 7202da538a12..e2982d4f7281 100644
--- a/tests/gss/check-spnego.in
+++ b/tests/gss/check-spnego.in
@@ -40,7 +40,7 @@ objdir="@objdir@"
. ${env_setup}
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
../db/have-db || exit 77
R=TEST.H5L.SE
diff --git a/tests/kdc/check-canon.in b/tests/kdc/check-canon.in
index ef5d8275eda9..0bb5a413f3cf 100644
--- a/tests/kdc/check-canon.in
+++ b/tests/kdc/check-canon.in
@@ -33,7 +33,7 @@ objdir="@objdir@"
. ${env_setup}
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
# (krb5_kt_get_entry() is tested in another test)
${have_db} || exit 77
diff --git a/tests/kdc/check-cc.in b/tests/kdc/check-cc.in
index 6e02589471df..1543db4f8819 100644
--- a/tests/kdc/check-cc.in
+++ b/tests/kdc/check-cc.in
@@ -43,7 +43,7 @@ unset KRB5CCNAME
testfailed="echo test failed; exit 1"
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
${have_db} || exit 77
R=TEST.H5L.SE
diff --git a/tests/kdc/check-delegation.in b/tests/kdc/check-delegation.in
index 5fa19adba9a2..8657946168ad 100644
--- a/tests/kdc/check-delegation.in
+++ b/tests/kdc/check-delegation.in
@@ -36,7 +36,7 @@ objdir="@objdir@"
. ${env_setup}
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
${have_db} || exit 77
R=TEST.H5L.SE
diff --git a/tests/kdc/check-des.in b/tests/kdc/check-des.in
index 301baa6edf7d..d45b119dfa5d 100644
--- a/tests/kdc/check-des.in
+++ b/tests/kdc/check-des.in
@@ -39,7 +39,7 @@ testfailed="echo test failed; cat messages.log; exit 1"
. ${env_setup}
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
${have_db} || exit 77
R=TEST.H5L.SE
diff --git a/tests/kdc/check-digest.in b/tests/kdc/check-digest.in
index d31ba323ca8c..1623783eba6d 100644
--- a/tests/kdc/check-digest.in
+++ b/tests/kdc/check-digest.in
@@ -40,7 +40,7 @@ testfailed="echo test failed; cat messages.log; exit 1"
. ${env_setup}
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
${have_db} || exit 77
R=TEST.H5L.SE
diff --git a/tests/kdc/check-fast.in b/tests/kdc/check-fast.in
index 96c00c31921f..4d3577c55966 100644
--- a/tests/kdc/check-fast.in
+++ b/tests/kdc/check-fast.in
@@ -42,7 +42,7 @@ export KRB5_CONFIG
testfailed="echo test failed; cat messages.log; exit 1"
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
${have_db} || exit 77
R=TEST.H5L.SE
diff --git a/tests/kdc/check-hdb-mitdb.in b/tests/kdc/check-hdb-mitdb.in
index 13559d9c9eaa..e9de58799a31 100644
--- a/tests/kdc/check-hdb-mitdb.in
+++ b/tests/kdc/check-hdb-mitdb.in
@@ -42,7 +42,7 @@ export KRB5_CONFIG
testfailed="echo test failed; cat messages.log; exit 1"
-# If there is no ldap support compile in, disable test
+# If there is no ldap support compiled in, disable test
if ${kdc} --builtin-hdb | grep mit-db > /dev/null ; then
:
else
@@ -50,7 +50,7 @@ else
exit 77
fi
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
${have_db} || exit 77
R=TEST.H5L.SE
diff --git a/tests/kdc/check-iprop.in b/tests/kdc/check-iprop.in
index ebdbaf1a459e..af6d9c253ca1 100644
--- a/tests/kdc/check-iprop.in
+++ b/tests/kdc/check-iprop.in
@@ -39,11 +39,11 @@ db_type=@db_type@
. ${env_setup}
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
${have_db} || exit 77
-# Dont run this test in AFS, since it lacks support for AF_UNIX
+# Don't run this test in AFS, since it lacks support for AF_UNIX
expr "X`/bin/pwd || pwd`" : "X/afs/.*" > /dev/null 2>/dev/null && exit 77
R=TEST.H5L.SE
@@ -301,7 +301,7 @@ echo "doing changes while slave is down"
${kadmin} -l cpw --random-password user@${R} > /dev/null || exit 1
${kadmin} -l cpw --random-password user@${R} > /dev/null || exit 1
-echo "Makeing a copy of the master log file"
+echo "Making a copy of the master log file"
cp ${objdir}/current.log ${objdir}/current.log.tmp
# ----------------- checking: checking that master and slaves resyncs
diff --git a/tests/kdc/check-kadmin.in b/tests/kdc/check-kadmin.in
index d40d0ea8812e..e01a1c349cb7 100644
--- a/tests/kdc/check-kadmin.in
+++ b/tests/kdc/check-kadmin.in
@@ -38,7 +38,7 @@ srcdir="@srcdir@"
. ${env_setup}
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
${have_db} || exit 77
R=TEST.H5L.SE
diff --git a/tests/kdc/check-kdc.in b/tests/kdc/check-kdc.in
index f6e78ccaccac..a57253b5ab87 100644
--- a/tests/kdc/check-kdc.in
+++ b/tests/kdc/check-kdc.in
@@ -42,7 +42,7 @@ export KRB5_CONFIG
testfailed="echo test failed; cat messages.log; exit 1"
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
${have_db} || exit 77
R=TEST.H5L.SE
@@ -487,6 +487,30 @@ for a in $enctypes; do
done
${kdestroy}
+echo "Getting client authenticated anonymous initial tickets"; > messages.log
+${kinit} -n --password-file=${objdir}/foopassword foo@$R || \
+ { ec=1 ; eval "${testfailed}"; }
+for a in $enctypes; do
+ echo "Getting tickets ($a)"; > messages.log
+ ${kgetcred} -e $a ${server}@${R} || { ec=1 ; eval "${testfailed}"; }
+ ${test_ap_req} ${server}@${R} ${keytab} ${cache} || \
+ { ec=1 ; eval "${testfailed}"; }
+ ${kdestroy} --credential=${server}@${R}
+done
+${kdestroy}
+
+echo "Getting client anonymous service tickets"; > messages.log
+${kinit} --password-file=${objdir}/foopassword foo@$R || \
+ { ec=1 ; eval "${testfailed}"; }
+for a in $enctypes; do
+ echo "Getting tickets ($a)"; > messages.log
+ ${kgetcred} -n -e $a ${server}@${R} || { ec=1 ; eval "${testfailed}"; }
+ ${test_ap_req} ${server}@${R} ${keytab} ${cache} || \
+ { ec=1 ; eval "${testfailed}"; }
+ ${kdestroy} --credential=${server}@${R}
+done
+${kdestroy}
+
echo "Getting client initial tickets for cross realm case"; > messages.log
${kinit} --password-file=${objdir}/foopassword foo@$R || { ec=1 ; eval "${testfailed}"; }
for a in $enctypes; do
@@ -713,9 +737,10 @@ fi
if test "$pkinit" = yes -a "$rsa" = yes ; then
echo "try anonymous pkinit"; > messages.log
- ${kinit} --anonymous ${R} || \
+ ${kinit} --renewable -n @${R} || \
{ ec=1 ; eval "${testfailed}"; }
${kgetcred} ${server}@${R} || { ec=1 ; eval "${testfailed}"; }
+ ${kinit} --renew || { ec=1 ; eval "${testfailed}"; }
${kdestroy}
for type in "" "--pk-use-enckey"; do
@@ -761,6 +786,14 @@ else
echo "no pkinit (pkinit: $pkinit, rsa: $rsa)"; > messages.log
fi
+echo "test impersonate using rc4 based tgt"; > messages.log
+${kinit} -e arcfour-hmac-md5 --forwardable --password-file=${objdir}/foopassword ${ps} || \
+ { ec=1 ; eval "${testfailed}"; }
+${kgetcred_imp} --impersonate=bar@${R} ${ps} || \
+ { ec=1 ; eval "${testfailed}"; }
+${test_ap_req} ${ps} ${keytab} ${ocache} || \
+ { ec=1 ; eval "${testfailed}"; }
+
echo "tickets for impersonate test case"; > messages.log
${kinit} --forwardable --password-file=${objdir}/foopassword ${ps} || \
{ ec=1 ; eval "${testfailed}"; }
diff --git a/tests/kdc/check-keys.in b/tests/kdc/check-keys.in
index e8aca2684ae7..6784bb51efa9 100644
--- a/tests/kdc/check-keys.in
+++ b/tests/kdc/check-keys.in
@@ -39,7 +39,7 @@ objdir="."
srcdir="${top_srcdir}/tests/kdc"
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
${have_db} || exit 77
R=TEST.H5L.SE
diff --git a/tests/kdc/check-kinit.in b/tests/kdc/check-kinit.in
index e541a844d167..35ec6deadbfa 100644
--- a/tests/kdc/check-kinit.in
+++ b/tests/kdc/check-kinit.in
@@ -43,7 +43,7 @@ export KRB5CCNAME
testfailed="echo test failed; exit 1"
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
${have_db} || exit 77
R=TEST.H5L.SE
diff --git a/tests/kdc/check-kpasswdd.in b/tests/kdc/check-kpasswdd.in
index 3711ede01d91..4f63ce240fad 100644
--- a/tests/kdc/check-kpasswdd.in
+++ b/tests/kdc/check-kpasswdd.in
@@ -37,12 +37,12 @@ objdir="@objdir@"
. ${env_setup}
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
${have_db} || exit 77
testfailed="echo test failed; cat messages.log; exit \$ec"
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
${have_db} || exit 77
R=TEST.H5L.SE
diff --git a/tests/kdc/check-pkinit.in b/tests/kdc/check-pkinit.in
index 92c515ffbe91..23947bf5fe54 100644
--- a/tests/kdc/check-pkinit.in
+++ b/tests/kdc/check-pkinit.in
@@ -39,7 +39,7 @@ testfailed="echo test failed; cat messages.log; exit 1"
. ${env_setup}
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
${have_db} || exit 77
R=TEST.H5L.SE
diff --git a/tests/kdc/check-referral.in b/tests/kdc/check-referral.in
index bbb72a349b65..92240c9ac9b6 100644
--- a/tests/kdc/check-referral.in
+++ b/tests/kdc/check-referral.in
@@ -39,7 +39,7 @@ objdir="@objdir@"
testfailed="echo test failed; cat messages.log; exit 1"
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
${have_db} || exit 77
R=TEST.H5L.SE
diff --git a/tests/kdc/check-tester.in b/tests/kdc/check-tester.in
index 8f1679f50510..dba154c299b9 100644
--- a/tests/kdc/check-tester.in
+++ b/tests/kdc/check-tester.in
@@ -43,7 +43,7 @@ export KRB5_CONFIG
testfailed="echo test failed; cat messages.log; exit 1"
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
${have_db} || exit 77
R=TEST.H5L.SE
diff --git a/tests/kdc/check-uu.in b/tests/kdc/check-uu.in
index c6607fa239ba..7e819a14ad0d 100644
--- a/tests/kdc/check-uu.in
+++ b/tests/kdc/check-uu.in
@@ -39,7 +39,7 @@ testfailed="echo test failed; cat messages.log; exit 1"
. ${env_setup}
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
${have_db} || exit 77
R=TEST.H5L.SE
diff --git a/tests/ldap/check-ldap.in b/tests/ldap/check-ldap.in
index 3325c5d50102..943fb0e7f3c4 100644
--- a/tests/ldap/check-ldap.in
+++ b/tests/ldap/check-ldap.in
@@ -59,7 +59,7 @@ testfailed="echo test failed; exit 1"
KRB5_CONFIG="${objdir}/krb5.conf"
export KRB5_CONFIG
-# If there is no ldap support compile in, disable test
+# If there is no ldap support compiled in, disable test
if ${kdc} --builtin-hdb | grep ldap > /dev/null ; then
:
else
diff --git a/tests/plugin/check-pac.in b/tests/plugin/check-pac.in
index 7f0a4c326736..e201ed429ee3 100644
--- a/tests/plugin/check-pac.in
+++ b/tests/plugin/check-pac.in
@@ -43,7 +43,7 @@ EGREP="@EGREP@"
testfailed="echo test failed; cat messages.log; exit 1"
-# If there is no useful db support compile in, disable test
+# If there is no useful db support compiled in, disable test
../db/have-db || exit 77
R=TEST.H5L.SE