mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Configure ipa_dns DS plugin on install and upgrade
The plugin is configured unconditionally (i.e. does not check if IPA was configured with DNS) as the plugin is needed on all replicas to prevent objectclass violations due to missing SOA serial in idnsZone objectclass. The violation could happen if just one replica configured DNS and added a new zone. https://fedorahosted.org/freeipa/ticket/3347
This commit is contained in:
@@ -202,6 +202,7 @@ class DsInstance(service.Service):
|
||||
self.step("configuring uniqueness plugin", self.__set_unique_attrs)
|
||||
self.step("configuring uuid plugin", self.__config_uuid_module)
|
||||
self.step("configuring modrdn plugin", self.__config_modrdn_module)
|
||||
self.step("configuring DNS plugin", self.__config_dns_module)
|
||||
self.step("enabling entryUSN plugin", self.__enable_entryusn)
|
||||
self.step("configuring lockout plugin", self.__config_lockout_module)
|
||||
self.step("creating indices", self.__create_indices)
|
||||
@@ -501,6 +502,11 @@ class DsInstance(service.Service):
|
||||
self._ldap_mod("modrdn-conf.ldif")
|
||||
self._ldap_mod("modrdn-krbprinc.ldif", self.sub_dict)
|
||||
|
||||
def __config_dns_module(self):
|
||||
# Configure DNS plugin unconditionally as we would otherwise have
|
||||
# troubles if other replica just configured DNS with ipa-dns-install
|
||||
self._ldap_mod("ipa-dns-conf.ldif")
|
||||
|
||||
def __config_lockout_module(self):
|
||||
self._ldap_mod("lockout-conf.ldif")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user