# use kdb5_edit to verify that a principal was created and that its
# salt types are 0 (normal).
#
- spawn $KDB5_EDIT -m -d $tmppwd/db -r KRBTEST.COM
+ spawn $KDB5_EDIT -r KRBTEST.COM
expect_after { -i $spawn_id
timeout {
fail "kadmin add $pname"
}
}
set good 0
- expect -i $spawn_id "Enter KDC database master key" {
- send "masterkey$KEY\r"
- }
expect "kdb5_edit:" { send "show $pname\r" }
expect {
-re "Name: $pname@KRBTEST.COM\r\nKey version: 1\r\n.*Last modified by krbtest/admin@KRBTEST.COM.*Salt: 0.*Alt salt: 0" {
# use kdb5_edit to verify that a principal was created and that its
# salt types are 1 (v4).
#
- spawn $KDB5_EDIT -m -d $tmppwd/db -r KRBTEST.COM
+ spawn $KDB5_EDIT -r KRBTEST.COM
expect_after { -i $spawn_id
timeout {
fail "kadmin addv4 $pname"
}
}
set good 0
- expect -i $spawn_id "Enter KDC database master key" {
- send "masterkey$KEY\r"
- }
expect "kdb5_edit:" { send "show $pname\r" }
expect {
-re "Name: $pname@KRBTEST.COM\r\nKey version: 1\r\n.*Last modified by krbtest/admin@KRBTEST.COM.*Salt: 1.*Alt salt: 1" {
# use kdb5_edit to verify that a principal was created and that its
# salt types are 0 (normal).
#
- spawn $KDB5_EDIT -m -d $tmppwd/db -r KRBTEST.COM
+ spawn $KDB5_EDIT -r KRBTEST.COM
expect_after { -i $spawn_id
timeout {
fail "kadmin add_rnd $pname"
}
}
set good 0
- expect -i $spawn_id "Enter KDC database master key" {
- send "masterkey$KEY\r"
- }
expect "kdb5_edit:" { send "show $pname\r" }
expect {
-re "Name: $pname@KRBTEST.COM\r\nKey version: 1\r\n.*Last modified by krbtest/admin@KRBTEST.COM.*Salt: 0.*Alt salt: 0" {
# use kdb5_edit to verify that the new principal was created and that its
# salt types are 0 (normal).
#
- spawn $KDB5_EDIT -m -d $tmppwd/db -r KRBTEST.COM
+ spawn $KDB5_EDIT -r KRBTEST.COM
expect_after { -i $spawn_id
timeout {
fail "kadmin renent $pname $npname"
}
}
set good 0
- expect -i $spawn_id "Enter KDC database master key" {
- send "masterkey$KEY\r"
- }
expect "kdb5_edit:" { send "show $npname\r" }
expect {
-re "Name: $npname@KRBTEST.COM\r\n.*Last modified by krbtest/admin@KRBTEST.COM.*Salt: 0.*Alt salt: 0" {
#
# use kdb5_edit to verify that the old principal is not present.
#
- spawn $KDB5_EDIT -m -d $tmppwd/db -r KRBTEST.COM
+ spawn $KDB5_EDIT -r KRBTEST.COM
expect_after {
timeout {
fail "kadmin renent $pname $npname"
}
}
set good 0
- expect "Enter KDC database master key" { send "masterkey$KEY\r" }
expect "kdb5_edit:" { send "show $pname\r" }
expect "Principal $pname not found" { set good 1 }
expect "kdb5_edit:" { send "q\r" }
#
# use kdb5_edit to verify that the old principal is not present.
#
- spawn $KDB5_EDIT -m -d $tmppwd/db -r KRBTEST.COM
+ spawn $KDB5_EDIT -r KRBTEST.COM
expect_after { -i $spawn_id
timeout {
fail "kadmin delent $pname"
}
}
set good 0
- expect -i $spawn_id "Enter KDC database master key" {
- send "masterkey$KEY\r"
- }
expect "kdb5_edit:" { send "show $pname\r" }
expect "Principal $pname not found" { set good 1 }
expect "kdb5_edit:" { send "q\r" }