summaryrefslogtreecommitdiffstats
path: root/src/kadmin/v4server/unit-test
diff options
context:
space:
mode:
authorBarry Jaspan <bjaspan@mit.edu>1996-09-11 21:45:19 +0000
committerBarry Jaspan <bjaspan@mit.edu>1996-09-11 21:45:19 +0000
commit642b2005e0e3c2cfbc723577fc6192e073ee3ae8 (patch)
tree1c1ab3d3211e9ecfdcf34a24d94aa8d12dc9ee6d /src/kadmin/v4server/unit-test
parentc6fbdba2d20542c3f09d0f3497d6fbdab74ac032 (diff)
downloadkrb5-642b2005e0e3c2cfbc723577fc6192e073ee3ae8.tar.gz
krb5-642b2005e0e3c2cfbc723577fc6192e073ee3ae8.tar.xz
krb5-642b2005e0e3c2cfbc723577fc6192e073ee3ae8.zip
use kadmin instead of kadm5_keytab
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9085 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kadmin/v4server/unit-test')
-rw-r--r--src/kadmin/v4server/unit-test/v4server.0/setup-srvtab.exp17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/kadmin/v4server/unit-test/v4server.0/setup-srvtab.exp b/src/kadmin/v4server/unit-test/v4server.0/setup-srvtab.exp
index 3c8e181b2c..f908ff44ba 100644
--- a/src/kadmin/v4server/unit-test/v4server.0/setup-srvtab.exp
+++ b/src/kadmin/v4server/unit-test/v4server.0/setup-srvtab.exp
@@ -2,10 +2,17 @@ load_lib "helpers.exp"
set timeout 10
-exp_prog "setup" $ovsec_edit_keytab \
- "-k /krb5/ovsec_adm.srvtab -a -c -p admin changepw/kerberos" \
- 0 {
- "Enter password:" { send "admin\n" }
+exp_prog "setup" $kadmin_local "" 0 {
+ "kadmin.local:" { send "ank -randkey changepw/kerberos\n" }
} {
- -re "Entry for principal changepw/kerberos .* added to keytab" {}
+ "created" {}
+ "already exists" {}
+} {
+ "kadmin.local:" {
+ send "ktadd -k /krb5/ovsec_adm.srvtab changepw/kerberos\n"
+ }
+} {
+ -re "Entry for principal changepw/kerberos .* added to keytab" {
+ send "quit\n"
+ }
}