global kadmind_spawn_id
set good 0
- spawn $KADMIN -m -p krbtest/kadmin@KRBTEST.COM ank $pname
+ spawn $KADMIN -m -p krbtest/admin@KRBTEST.COM ank $pname
expect_after {
timeout {
fail "kadmin add $pname"
return 0
}
}
- expect "Enter password for krbtest/kadmin@KRBTEST.COM:" {
+ expect "Enter password for krbtest/admin@KRBTEST.COM:" {
send "adminpass$KEY\r"
}
expect "Enter new password for $pname :" { send "$password\r" }
# and also, on some systems the write to standard error will block if
# too many messages back up.
#
- expect -i $kadmind_spawn_id "Add Principal operation for $pname successfully issued by krbtest/kadmin@KRBTEST.COM"
+ expect -i $kadmind_spawn_id "Add Principal operation for $pname successfully issued by krbtest/admin@KRBTEST.COM"
if { $good == 1 } {
#
# use kdb5_edit to verify that a principal was created and that its
}
expect "kdb5_edit:" { send "show $pname\r" }
expect {
- -re "Name: $pname@KRBTEST.COM\r\nKey version: 1\r\n.*Last modified by krbtest/kadmin@KRBTEST.COM.*Salt: 0.*Alt salt: 0" {
+ -re "Name: $pname@KRBTEST.COM\r\nKey version: 1\r\n.*Last modified by krbtest/admin@KRBTEST.COM.*Salt: 0.*Alt salt: 0" {
set good 1
}
}
global kadmind_spawn_id
set good 0
- spawn $KADMIN -m -p krbtest/kadmin@KRBTEST.COM ank $pname salttype=v4
+ spawn $KADMIN -m -p krbtest/admin@KRBTEST.COM ank $pname salttype=v4
expect_after {
timeout {
fail "kadmin addv4 $pname"
return 0
}
}
- expect "Enter password for krbtest/kadmin@KRBTEST.COM:" {
+ expect "Enter password for krbtest/admin@KRBTEST.COM:" {
send "adminpass$KEY\r"
}
expect "Enter new password for $pname :" { send "$password\r" }
set k_stat [wait -i $spawn_id]
verbose "wait -i $spawn_id returned $k_stat (kadmin addv4)"
catch "close -i $spawn_id"
- expect -i $kadmind_spawn_id "Add Principal operation for $pname successfully issued by krbtest/kadmin@KRBTEST.COM"
+ expect -i $kadmind_spawn_id "Add Principal operation for $pname successfully issued by krbtest/admin@KRBTEST.COM"
if { $good == 1 } {
#
# use kdb5_edit to verify that a principal was created and that its
}
expect "kdb5_edit:" { send "show $pname\r" }
expect {
- -re "Name: $pname@KRBTEST.COM\r\nKey version: 1\r\n.*Last modified by krbtest/kadmin@KRBTEST.COM.*Salt: 1.*Alt salt: 1" {
+ -re "Name: $pname@KRBTEST.COM\r\nKey version: 1\r\n.*Last modified by krbtest/admin@KRBTEST.COM.*Salt: 1.*Alt salt: 1" {
set good 1
}
}
global kadmind_spawn_id
set good 0
- spawn $KADMIN -m -p krbtest/kadmin@KRBTEST.COM ark $pname
+ spawn $KADMIN -m -p krbtest/admin@KRBTEST.COM ark $pname
expect_after {
timeout {
fail "kadmin add_rnd $pname"
return 0
}
}
- expect "Enter password for krbtest/kadmin@KRBTEST.COM:" {
+ expect "Enter password for krbtest/admin@KRBTEST.COM:" {
send "adminpass$KEY\r"
}
expect "principal $pname added" { set good 1 }
set k_stat [wait -i $spawn_id]
verbose "wait -i $spawn_id returned $k_stat (kadmin add_rnt)"
catch "close -i $spawn_id"
- expect -i $kadmind_spawn_id "Add Principal operation for $pname successfully issued by krbtest/kadmin@KRBTEST.COM"
+ expect -i $kadmind_spawn_id "Add Principal operation for $pname successfully issued by krbtest/admin@KRBTEST.COM"
if { $good == 1 } {
#
# use kdb5_edit to verify that a principal was created and that its
}
expect "kdb5_edit:" { send "show $pname\r" }
expect {
- -re "Name: $pname@KRBTEST.COM\r\nKey version: 1\r\n.*Last modified by krbtest/kadmin@KRBTEST.COM.*Salt: 0.*Alt salt: 0" {
+ -re "Name: $pname@KRBTEST.COM\r\nKey version: 1\r\n.*Last modified by krbtest/admin@KRBTEST.COM.*Salt: 0.*Alt salt: 0" {
set good 1
}
}
global KEY
global spawn_id
- spawn $KADMIN -m -p krbtest/kadmin@KRBTEST.COM show $pname
+ spawn $KADMIN -m -p krbtest/admin@KRBTEST.COM show $pname
expect_after {
timeout {
fail "kadmin show $pname"
return 0
}
}
- expect "Enter password for krbtest/kadmin@KRBTEST.COM:"
+ expect "Enter password for krbtest/admin@KRBTEST.COM:"
send "adminpass$KEY\r"
expect -re "\r.*-*Principal: $pname.*Last modified by: .*Flags:.*-*"
expect_after
global spawn_id
global kadmind_spawn_id
- spawn $KADMIN -m -p krbtest/kadmin@KRBTEST.COM cpw $pname
+ spawn $KADMIN -m -p krbtest/admin@KRBTEST.COM cpw $pname
expect_after {
timeout {
fail "kadmin cpw $pname"
return 0
}
}
- expect "Enter password for krbtest/kadmin@KRBTEST.COM:" {
+ expect "Enter password for krbtest/admin@KRBTEST.COM:" {
send "adminpass$KEY\r"
}
expect "Enter new password for $pname:" { send "$password\r" }
set k_stat [wait -i $spawn_id]
verbose "wait -i $spawn_id returned $k_stat (kadmin cpw)"
catch "close -i $spawn_id"
- expect -i $kadmind_spawn_id "Change Password operation for $pname successfully issued by krbtest/kadmin@KRBTEST.COM"
+ expect -i $kadmind_spawn_id "Change Password operation for $pname successfully issued by krbtest/admin@KRBTEST.COM"
pass "kadmin cpw $pname"
return 1
}
global spawn_id
global kadmind_spawn_id
- spawn $KADMIN -m -p krbtest/kadmin@KRBTEST.COM crk $pname
+ spawn $KADMIN -m -p krbtest/admin@KRBTEST.COM crk $pname
expect_after {
timeout {
fail "kadmin cpw_rnd $pname"
return 0
}
}
- expect "Enter password for krbtest/kadmin@KRBTEST.COM:" {
+ expect "Enter password for krbtest/admin@KRBTEST.COM:" {
send "adminpass$KEY\r"
}
# When in doubt, jam one of these in there.
set k_stat [wait -i $spawn_id]
verbose "wait -i $spawn_id returned $k_stat (kadmin cpw_rnd)"
catch "close -i $spawn_id"
- expect -i $kadmind_spawn_id "Change Random Password operation for $pname successfully issued by krbtest/kadmin@KRBTEST.COM"
+ expect -i $kadmind_spawn_id "Change Random Password operation for $pname successfully issued by krbtest/admin@KRBTEST.COM"
pass "kadmin cpw_rnd $pname"
return 1
}
global spawn_id
global kadmind_spawn_id
- spawn $KADMIN -m -p krbtest/kadmin@KRBTEST.COM modent $pname $flags
+ spawn $KADMIN -m -p krbtest/admin@KRBTEST.COM modent $pname $flags
expect_after {
timeout {
fail "kadmin modify $pname"
return 0
}
}
- expect "Enter password for krbtest/kadmin@KRBTEST.COM:"
+ expect "Enter password for krbtest/admin@KRBTEST.COM:"
send "adminpass$KEY\r"
expect "principal $pname modified"
expect_after
set k_stat [wait -i $spawn_id]
verbose "wait -i $spawn_id returned $k_stat (kadmin modify)"
catch "close -i $spawn_id"
- expect -i $kadmind_spawn_id "Modify Principal operation for $pname successfully issued by krbtest/kadmin@KRBTEST.COM"
+ expect -i $kadmind_spawn_id "Modify Principal operation for $pname successfully issued by krbtest/admin@KRBTEST.COM"
pass "kadmin modify $pname"
return 1
}
global kadmind_spawn_id
set good 0
- spawn $KADMIN -m -p krbtest/kadmin@KRBTEST.COM renent -force $pname $npname
+ spawn $KADMIN -m -p krbtest/admin@KRBTEST.COM renent -force $pname $npname
expect_after {
timeout {
fail "kadmin renent $pname $npname"
return 0
}
}
- expect "Enter password for krbtest/kadmin@KRBTEST.COM:" {
+ expect "Enter password for krbtest/admin@KRBTEST.COM:" {
send "adminpass$KEY\r"
}
expect "principal $pname renamed to $npname" { set good 1 }
set k_stat [wait -i $spawn_id]
verbose "wait -i $spawn_id returned $k_stat (kadmin rename)"
catch "close -i $spawn_id"
- expect -i $kadmind_spawn_id "Rename Principal operation from $pname to $npname successfully issued by krbtest/kadmin@KRBTEST.COM"
+ expect -i $kadmind_spawn_id "Rename Principal operation from $pname to $npname successfully issued by krbtest/admin@KRBTEST.COM"
if { $good == 1 } {
#
# use kdb5_edit to verify that the new principal was created and that its
}
expect "kdb5_edit:" { send "show $npname\r" }
expect {
- -re "Name: $npname@KRBTEST.COM\r\n.*Last modified by krbtest/kadmin@KRBTEST.COM.*Salt: 0.*Alt salt: 0" {
+ -re "Name: $npname@KRBTEST.COM\r\n.*Last modified by krbtest/admin@KRBTEST.COM.*Salt: 0.*Alt salt: 0" {
set good 1
}
}
global KEY
global spawn_id
- spawn $KADMIN -m -p krbtest/kadmin@KRBTEST.COM ldb
+ spawn $KADMIN -m -p krbtest/admin@KRBTEST.COM ldb
expect_after {
timeout {
fail "kadmin ldb"
return 0
}
}
- expect "Enter password for krbtest/kadmin@KRBTEST.COM:" {
+ expect "Enter password for krbtest/admin@KRBTEST.COM:" {
send "adminpass$KEY\r"
}
expect -re "\(.*@KRBTEST.COM\r\n\)*"
global KEY
global spawn_id
- spawn $KADMIN -m -p krbtest/kadmin@KRBTEST.COM xst $instance $name
+ spawn $KADMIN -m -p krbtest/admin@KRBTEST.COM xst $instance $name
expect_after {
timeout {
fail "kadmin xst $instance $name"
return 0
}
}
- expect "Enter password for krbtest/kadmin@KRBTEST.COM:" {
+ expect "Enter password for krbtest/admin@KRBTEST.COM:" {
send "adminpass$KEY\r"
}
expect "extracted entry $name to key table $instance-new-srvtab"
global KEY
global spawn_id
- spawn $KADMIN -m -p krbtest/kadmin@KRBTEST.COM xst4 $instance $name
+ spawn $KADMIN -m -p krbtest/admin@KRBTEST.COM xst4 $instance $name
expect_after {
timeout {
fail "kadmin xst4 $instance $name"
return 0
}
}
- expect "Enter password for krbtest/kadmin@KRBTEST.COM:" {
+ expect "Enter password for krbtest/admin@KRBTEST.COM:" {
send "adminpass$KEY\r"
}
expect "extracted entry $name to key table $instance-new-v4-srvtab"
global kadmind_spawn_id
set good 0
- spawn $KADMIN -m -p krbtest/kadmin@KRBTEST.COM delent -force $pname
+ spawn $KADMIN -m -p krbtest/admin@KRBTEST.COM delent -force $pname
expect_after {
timeout {
fail "kadmin delent $pname"
return 0
}
}
- expect "Enter password for krbtest/kadmin@KRBTEST.COM:" {
+ expect "Enter password for krbtest/admin@KRBTEST.COM:" {
send "adminpass$KEY\r"
}
expect "principal $pname deleted" { set good 1 }
set k_stat [wait -i $spawn_id]
verbose "wait -i $spawn_id returned $k_stat (kadmin delent)"
catch "close -i $spawn_id"
- expect -i $kadmind_spawn_id "Delete Principal operation for $pname successfully issued by krbtest/kadmin@KRBTEST.COM"
+ expect -i $kadmind_spawn_id "Delete Principal operation for $pname successfully issued by krbtest/admin@KRBTEST.COM"
if { $good == 1 } {
#
# use kdb5_edit to verify that the old principal is not present.