managed entry hostgroup netgroup support https://fedorahosted.org/freeipa/ticket/543

This commit is contained in:
Jr Aquino
2010-12-10 15:21:39 -08:00
committed by Rob Crittenden
parent 2884bce276
commit 13139f2fd6
10 changed files with 305 additions and 4 deletions

View File

@@ -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)