A ref counting bug in python-ldap caused create and retrieve keytab feature to fail. Additional tests verify, that ipaallowedtoperform;write_keys attribute is handled correctly. See: https://pagure.io/freeipa/issue/7324 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>