From e466bed5453302ca41e6ab7e85fddbdd35548d2a Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 11 Aug 2010 15:26:37 -0400 Subject: Enable compat plugin by default and configure netgroups Move the netgroup compat configuration from the nis configuration to the existing compat configuration. Add a 'status' option to the ipa-copmat-manage tool. ticket 91 --- ipaserver/install/dsinstance.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ipaserver/install/dsinstance.py') diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py index 3ea9c94ce..4ba91066b 100644 --- a/ipaserver/install/dsinstance.py +++ b/ipaserver/install/dsinstance.py @@ -219,6 +219,8 @@ class DsInstance(service.Service): self.init_memberof) if hbac_allow: self.step("creating default HBAC rule allow_all", self.add_hbac) + self.step("enabling compatibility plugin", + self.__enable_compat_plugin) self.step("configuring directory to start on boot", self.__enable) @@ -342,7 +344,7 @@ class DsInstance(service.Service): self._ldap_mod("memberof-task.ldif", self.sub_dict) def apply_updates(self): - ld = ldapupdate.LDAPUpdate(dm_password=self.dm_password) + ld = ldapupdate.LDAPUpdate(dm_password=self.dm_password, sub_dict=self.sub_dict) files = ld.get_all_files(ldapupdate.UPDATES_DIR) ld.update(files) @@ -365,6 +367,12 @@ class DsInstance(service.Service): def __add_winsync_module(self): self._ldap_mod("ipa-winsync-conf.ldif") + def __enable_compat_plugin(self): + ld = ldapupdate.LDAPUpdate(dm_password=self.dm_password, sub_dict=self.sub_dict) + rv = ld.update(['/usr/share/ipa/schema_compat.uldif']) + if not rv: + raise RuntimeError("Enabling compatibility plugin failed") + def __config_version_module(self): self._ldap_mod("version-conf.ldif") -- cgit