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
This commit is contained in:
Sumit Bose
2012-06-18 21:25:31 +02:00
committed by Rob Crittenden
parent fbebe82811
commit bdb995194c
7 changed files with 510 additions and 0 deletions

View File

@@ -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()