summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/dsinstance.py
diff options
context:
space:
mode:
authorJr Aquino <jr.aquino@citrix.com>2011-08-30 17:48:15 -0700
committerMartin Kosek <mkosek@redhat.com>2011-08-31 09:53:11 +0200
commit8b27f1ad273ee5420657194d82c021022c069447 (patch)
tree593b90ed801827ff1eda8fac791cc1a2cef2b049 /ipaserver/install/dsinstance.py
parent776af82572b56d9c66a2eadabdb5bced9316648a (diff)
downloadfreeipa-8b27f1ad273ee5420657194d82c021022c069447.zip
freeipa-8b27f1ad273ee5420657194d82c021022c069447.tar.gz
freeipa-8b27f1ad273ee5420657194d82c021022c069447.tar.xz
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/install/dsinstance.py')
-rw-r--r--ipaserver/install/dsinstance.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py
index 7ca5db2..09ef8c5 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
@@ -782,6 +785,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()