+2001-06-08 Ezra Peisach <epeisach@mit.edu>
+
+ * v4gssftp.exp: During test, set KRB5CCNAME to a non-existant
+ cache. Restore at end to previous setting. This prevents failures
+ caused when the krb5 cache contains valid information - as in the
+ case of this test being run immediately after the gssftp.exp test.
+
2001-06-08 Mitchell Berger <mitchb@mit.edu>
* gssftp.exp: Invocation of ftpd changed to use -U /dev/null and
proc ftp_restore_env { } {
global env
global ftp_save_ktname
+ global ftp_save_ccname
catch "unset env(KRB5_KTNAME)"
if [info exists ftp_save_ktname] {
set env(KRB5_KTNAME) $ftp_save_ktname
unset ftp_save_ktname
}
+
+ catch "unset env(KRB5CCNAME)"
+ if [info exists ftp_save_ccname] {
+ set env(KRB5CCNAME) $ftp_save_ccname
+ unset ftp_save_ccname
+ }
}
# Wrap the tests in a procedure, so that we can kill the daemons if
global spawn_id
global tmppwd
global ftp_save_ktname
+ global ftp_save_ccname
# Start up the kerberos and kadmind daemons and get a srvtab and a
# ticket file.
set env(KRB5_KTNAME) FILE:$tmppwd/srvtab
verbose "KRB5_KTNAME=$env(KRB5_KTNAME)"
+ #
+ # Save settings of KRB5CCNAME
+ # These tests fail if the krb5 cache happens to have a valid credential
+ # which can result from running the gssftp.exp test immediately
+ # preceeding these tests.
+ #
+ if [info exists env(KRB5CCNAME)] {
+ set ftp_save_ccname $env(KRB5CCNAME)
+ }
+
+ #
+ # set KRB5_KTNAME
+ #
+ set env(KRB5CCNAME) FILE:$tmppwd/non-existant-cache
+ verbose "KRB5CCNAME=$env(KRB5CCNAME)"
+
# Start the ftp daemon.
start_ftp_daemon