return
}
+ spawn $KADMIN_LOCAL -q "addpol fred"
+ catch expect_after
+ expect {
+ timeout {
+ fail "kadmin.local addpol fred"
+ }
+ eof {
+ pass "kadmin.local addpol fred"
+ }
+ }
+ set k_stat [wait -i $spawn_id]
+ verbose "wait -i $spawn_id returned $k_stat (kadmin addpol)"
+ catch "close -i $spawn_id"
+
# Use ksrvutil to create a srvtab entry.
if ![setup_srvtab 1] {
return
# Test dump and load. Continue on, whatever the result.
dump_and_reload
+ spawn $KADMIN_LOCAL -q "getpols"
+ expect {
+ fred {
+ pass "kadmin.local getpols"
+ expect eof
+ }
+ timeout {
+ fail "kadmin.local getpols"
+ }
+ eof {
+ fail "kadmin.local getpols"
+ }
+ }
+ set k_stat [wait -i $spawn_id]
+ verbose "wait -i $spawn_id returned $k_stat (kadmin addpol)"
+ catch "close -i $spawn_id"
+
# Use kinit to get a ticket.
if ![kinit krbtest/admin adminpass$KEY 1] {
return