diff options
author | Jr Aquino <jr.aquino@citrix.com> | 2011-08-30 17:48:15 -0700 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2011-08-31 09:49:43 +0200 |
commit | d05ace8fba6ea4a61c1070d5e5687aaa5d2aee2b (patch) | |
tree | 5b6daf95a33876a416c8e1ed8453b437a305c76b /ipaserver | |
parent | 6b19b2dc895b862d00eaf1eb4f047282418f598c (diff) | |
download | freeipa-d05ace8fba6ea4a61c1070d5e5687aaa5d2aee2b.tar.gz freeipa-d05ace8fba6ea4a61c1070d5e5687aaa5d2aee2b.tar.xz freeipa-d05ace8fba6ea4a61c1070d5e5687aaa5d2aee2b.zip |
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
Diffstat (limited to 'ipaserver')
-rw-r--r-- | ipaserver/install/dsinstance.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py index b1037fa3..fdbddb0e 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() |