summaryrefslogtreecommitdiffstats
path: root/src/kadmin/v4server/unit-test/v4server.0/setup-srvtab.exp
blob: f908ff44ba0ea20ee59db1fdd67bf184b5180797 (plain)
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"
    }
}