Clean kerberos keytab between running

This commit is contained in:
Mikhail f. Shiryaev 2022-02-13 14:42:51 +01:00
parent 23546ab825
commit 9340aab154
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -90,6 +90,7 @@ create_admin_user() {
}
create_keytabs() {
rm /tmp/keytab/*.keytab
kadmin.local -q "addprinc -randkey zookeeper/kafka_kerberized_zookeeper@${REALM}"
kadmin.local -q "ktadd -norandkey -k /tmp/keytab/kafka_kerberized_zookeeper.keytab zookeeper/kafka_kerberized_zookeeper@${REALM}"