summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/dsinstance.py
diff options
context:
space:
mode:
authorJr Aquino <jr.aquino@citrix.com>2010-12-10 15:21:39 -0800
committerRob Crittenden <rcritten@redhat.com>2010-12-13 17:56:12 -0500
commit13139f2fd638d23739d294cb2f5b3b94569c2316 (patch)
treee69d9059f9af812d6545e25edb43f48fe6ba0916 /ipaserver/install/dsinstance.py
parent2884bce2768a7c2f153f1e556de3862e4ec36b81 (diff)
downloadfreeipa-13139f2fd638d23739d294cb2f5b3b94569c2316.zip
freeipa-13139f2fd638d23739d294cb2f5b3b94569c2316.tar.gz
freeipa-13139f2fd638d23739d294cb2f5b3b94569c2316.tar.xz
managed entry hostgroup netgroup support https://fedorahosted.org/freeipa/ticket/543
Diffstat (limited to 'ipaserver/install/dsinstance.py')
-rw-r--r--ipaserver/install/dsinstance.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py
index 735c885..751be78 100644
--- a/ipaserver/install/dsinstance.py
+++ b/ipaserver/install/dsinstance.py
@@ -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)