diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-08-11 15:26:37 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-08-19 10:50:07 -0400 |
commit | e466bed5453302ca41e6ab7e85fddbdd35548d2a (patch) | |
tree | 9c0065938b44951bcfd6f9e7eddf4ceea332b262 /ipaserver | |
parent | e225ad4341b8f91b0aa3d4be3f93b9082716828e (diff) | |
download | freeipa-e466bed5453302ca41e6ab7e85fddbdd35548d2a.tar.gz freeipa-e466bed5453302ca41e6ab7e85fddbdd35548d2a.tar.xz freeipa-e466bed5453302ca41e6ab7e85fddbdd35548d2a.zip |
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
Diffstat (limited to 'ipaserver')
-rw-r--r-- | ipaserver/install/dsinstance.py | 10 |
1 files changed, 9 insertions, 1 deletions
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") |