mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Create kadm5.acl if it doesn't exist
kadmind doesn't start without it, and Debian doesn't ship it by default. Fixes: https://pagure.io/freeipa/issue/7553 Reviewed-By: Stanislav Laznicka <slaznick@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
parent
172df673dd
commit
0030118ddc
@ -299,6 +299,11 @@ class KrbInstance(service.Service):
|
||||
logger.debug("Persistent keyring CCACHE is not enabled")
|
||||
self.sub_dict['OTHER_LIBDEFAULTS'] = ''
|
||||
|
||||
# Create kadm5.acl if it doesn't exist
|
||||
if not os.path.exists(paths.KRB5KDC_KADM5_ACL):
|
||||
open(paths.KRB5KDC_KADM5_ACL, 'a').close()
|
||||
os.chmod(paths.KRB5KDC_KADM5_ACL, 0o600)
|
||||
|
||||
def __add_krb_container(self):
|
||||
self._ldap_mod("kerberos.ldif", self.sub_dict)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user