mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
managed entry hostgroup netgroup support https://fedorahosted.org/freeipa/ticket/543
This commit is contained in:
committed by
Rob Crittenden
parent
2884bce276
commit
13139f2fd6
@@ -209,6 +209,7 @@ class DsInstance(service.Service):
|
||||
self.step("configuring certmap.conf", self.__certmap_conf)
|
||||
self.step("restarting directory server", self.__restart_instance)
|
||||
self.step("configuring user private groups", self.__user_private_groups)
|
||||
self.step("configuring netgroups from hostgroups", self.__host_nis_groups)
|
||||
|
||||
def __common_post_setup(self):
|
||||
self.step("initializing group membership", self.init_memberof)
|
||||
@@ -464,6 +465,11 @@ class DsInstance(service.Service):
|
||||
raise errors.NotFound(reason='Missing Managed Entries Plugin')
|
||||
self._ldap_mod("user_private_groups.ldif", self.sub_dict)
|
||||
|
||||
def __host_nis_groups(self):
|
||||
if not has_managed_entries(self.fqdn, self.dm_password):
|
||||
raise errors.NotFound(reason='Missing Managed Entries Plugin')
|
||||
self._ldap_mod("host_nis_groups.ldif", self.sub_dict)
|
||||
|
||||
def __add_enrollment_module(self):
|
||||
self._ldap_mod("enrollment-conf.ldif", self.sub_dict)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user