From d05ace8fba6ea4a61c1070d5e5687aaa5d2aee2b Mon Sep 17 00:00:00 2001 From: Jr Aquino Date: Tue, 30 Aug 2011 17:48:15 -0700 Subject: 34 Create FreeIPA CLI Plugin for the 389 Auto Membership plugin Added new container in etc to hold the automembership configs. Modified constants to point to the new container Modified dsinstance to create the container Created automember.py to add the new commands Added xmlrpc test to verify functionality Added minor fix to user.py for constant behavior between memberof and automember https://fedorahosted.org/freeipa/ticket/1272 --- ipaserver/install/dsinstance.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ipaserver/install') diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py index b1037fa38..fdbddb0ee 100644 --- a/ipaserver/install/dsinstance.py +++ b/ipaserver/install/dsinstance.py @@ -250,6 +250,7 @@ class DsInstance(service.Service): self.step("configuring user private groups", self.__user_private_groups) self.step("configuring netgroups from hostgroups", self.__host_nis_groups) self.step("creating default Sudo bind user", self.__add_sudo_binduser) + self.step("creating default Auto Member layout", self.__add_automember_config) if hbac_allow: self.step("creating default HBAC rule allow_all", self.add_hbac) @@ -283,6 +284,8 @@ class DsInstance(service.Service): self.step("setting up initial replication", self.__setup_replica) self.step("adding replication acis", self.__add_replication_acis) + # See LDIFs for automember configuration during replica install + self.step("setting Auto Member configuration", self.__add_replica_automember_config) # Managed Entries configuration is done via update files @@ -784,6 +787,12 @@ class DsInstance(service.Service): def __add_sudo_binduser(self): self._ldap_mod("sudobind.ldif", self.sub_dict) + def __add_automember_config(self): + self._ldap_mod("automember.ldif", self.sub_dict) + + def __add_replica_automember_config(self): + self._ldap_mod("replica-automember.ldif", self.sub_dict) + def replica_populate(self): self.ldap_connect() -- cgit