aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2007-09-11 01:12:49 +0000
committerKen Raeburn <raeburn@mit.edu>2007-09-11 01:12:49 +0000
commit161f397dbcccf6cf824eee00151ea89c12a1436c (patch)
tree23d14d3fdf83eb1ccc819e34fccb9a64fcbdd6fc /src
parent58e67b6118a87b48b0edfb65250af6d7ab647ffb (diff)
downloadkrb5-161f397dbcccf6cf824eee00151ea89c12a1436c.zip
krb5-161f397dbcccf6cf824eee00151ea89c12a1436c.tar.gz
krb5-161f397dbcccf6cf824eee00151ea89c12a1436c.tar.bz2
Before the error-message tests, make sure the host principal exists,
so we get consistent errors. Expect the "keytab not found" error, rather than the "principal doesn't exist" error. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19931 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/tests/dejagnu/krb-standalone/gssftp.exp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tests/dejagnu/krb-standalone/gssftp.exp b/src/tests/dejagnu/krb-standalone/gssftp.exp
index a66586a..53bc265 100644
--- a/src/tests/dejagnu/krb-standalone/gssftp.exp
+++ b/src/tests/dejagnu/krb-standalone/gssftp.exp
@@ -180,6 +180,8 @@ proc ftp_test { } {
|| ![kinit $env(USER) $env(USER)$KEY 0]} {
return
}
+ # Force the host key to exist, so we get consistent errors below.
+ catch "add_random_key host/$hostname 0"
#
# Save settings of KRB5_KTNAME
@@ -224,11 +226,11 @@ proc ftp_test { } {
expect "GSSAPI accepted as authentication type"
expect -re "Trying to authenticate to <ftp@.*>"
# The ftp client doesn't print the gssapi error except on the last attempt.
+# expect "GSSAPI error major: Unspecified GSS failure."
+# expect -re "GSSAPI error minor: Key table file '.*' not found"
+ expect -re "Trying to authenticate to <host@.*>"
expect "GSSAPI error major: Unspecified GSS failure."
expect -re "GSSAPI error minor: Key table file '.*' not found"
-# expect -re "Trying to authenticate to <host@.*>"
-# expect "GSSAPI error major: Unspecified GSS failure."
-# expect -re "GSSAPI error minor: Server host/.* not found in Kerberos database"
expect -re "Name (.*): "
close -i $spawn_id
wait -i $spawn_id