Skip to content

Commit

Permalink
Create kadm5.acl if it doesn't exist
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-By: Christian Heimes <[email protected]>
  • Loading branch information
tjaalton authored and tiran committed May 29, 2018
1 parent 172df67 commit 0030118
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ipaserver/install/krbinstance.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,11 @@ def __setup_sub_dict(self):
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)

Expand Down

0 comments on commit 0030118

Please sign in to comment.