summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2012-06-18 21:25:31 +0200
committerRob Crittenden <rcritten@redhat.com>2012-06-29 18:00:58 -0400
commitbdb995194c2439751c6969cce589414164b1ffa2 (patch)
tree73fcb4741eaf66c60c01e37edb54eda40f09e918 /ipaserver
parentfbebe82811b621c79431f914b413164fbca738ca (diff)
downloadfreeipa-bdb995194c2439751c6969cce589414164b1ffa2.tar.gz
freeipa-bdb995194c2439751c6969cce589414164b1ffa2.tar.xz
freeipa-bdb995194c2439751c6969cce589414164b1ffa2.zip
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
Diffstat (limited to 'ipaserver')
-rw-r--r--ipaserver/install/dsinstance.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py
index 93c6b50c2..d74ee8987 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()