use kadmin instead of kadm5_keytab
authorBarry Jaspan <bjaspan@mit.edu>
Wed, 11 Sep 1996 21:45:19 +0000 (21:45 +0000)
committerBarry Jaspan <bjaspan@mit.edu>
Wed, 11 Sep 1996 21:45:19 +0000 (21:45 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9085 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/v4server/unit-test/v4server.0/setup-srvtab.exp

index 3c8e181b2cfc02ee40a1d213731f20a7005f31ed..f908ff44ba0ea20ee59db1fdd67bf184b5180797 100644 (file)
@@ -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"
+    }
 }