+Thu Aug 8 23:08:13 1996 Sam Hartman <hartmans@mit.edu>
+
+ * default.exp: In add_kerberos_key and add_random_key only execute
+ the final expect_after if the spawn ID is still open; also soak up
+ all the kadmin responses.
+
+Thu Aug 8 22:13:27 1996 Sam Hartman <hartmans@tertius.mit.edu>
+
+ * default.exp: Sleep for two seconds while waiting for KDC to
+ start; sleep(1) doesn't always take up any time.
+
Mon Aug 5 21:16:48 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
* default.exp: Update to new kdb5_util convention.
if ![file exists $kdc_lfile] then {
catch [touch $kdc_lfile]
- sleep 1
}
-
+ sleep 2
set kdc_start [file mtime $kdc_lfile]
spawn $KRB5KDC -r $REALMNAME -n
if { [file mtime $kdc_lfile] != $kdc_start } then {
break;
}
- sleep 1
+ sleep 2
}
if {$count >= $retry} {
}
eof {
fail "kadmin $kkey"
- catch "expect_after"
return 0
}
}
send "$KEY\r"
expect {
"Principal \"$kkey@$REALMNAME\" created" { }
- "Principal or policy already exists while creating" { }
+ "Principal or policy already exists while creating*" { expect eof }
}
- expect_after
+ catch "expect_after"
if ![check_exit_status kadmin] {
return 0
}
send "adminpass$KEY\r"
expect {
"Principal \"$kkey@$REALMNAME\" created" { }
- "Principal or policy already exists while creating" { }
+ "Principal or policy already exists while creating*" { expect eof}
}
- expect_after
+ catch "expect_after"
if ![check_exit_status kadmin] {
return 0
}