1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
load_lib "helpers.exp" set timeout 10 exp_prog "setup" $kadmin_local "" 0 { "kadmin.local:" { send "ank -randkey changepw/kerberos\n" } } { "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" } }