From 642b2005e0e3c2cfbc723577fc6192e073ee3ae8 Mon Sep 17 00:00:00 2001 From: Barry Jaspan Date: Wed, 11 Sep 1996 21:45:19 +0000 Subject: [PATCH] use kadmin instead of kadm5_keytab git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9085 dc483132-0cff-0310-8789-dd5450dbe970 --- .../unit-test/v4server.0/setup-srvtab.exp | 17 ++++++++++++----- 1 file 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 3c8e181b2..f908ff44b 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" + } } -- 2.26.2