From bdb995194c2439751c6969cce589414164b1ffa2 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Mon, 18 Jun 2012 21:25:31 +0200 Subject: Add range check preop plugin To make sure that ID ranges do not overlap this plugin checks new additions and changes for conflicts with existing ranges. https://fedorahosted.org/freeipa/ticket/2185 --- ipaserver/install/dsinstance.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ipaserver/install/dsinstance.py') diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py index 93c6b50c..d74ee898 100644 --- a/ipaserver/install/dsinstance.py +++ b/ipaserver/install/dsinstance.py @@ -240,6 +240,7 @@ class DsInstance(service.Service): 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) + self.step("adding range check plugin", self.__add_range_check_plugin) if hbac_allow: self.step("creating default HBAC rule allow_all", self.add_hbac) @@ -788,6 +789,9 @@ class DsInstance(service.Service): def __add_replica_automember_config(self): self._ldap_mod("replica-automember.ldif", self.sub_dict) + def __add_range_check_plugin(self): + self._ldap_mod("range-check-conf.ldif", self.sub_dict) + def replica_populate(self): self.ldap_connect() -- cgit