summaryrefslogtreecommitdiffstats
path: root/ipaserver/install
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2013-03-13 15:15:41 +0100
committerMartin Kosek <mkosek@redhat.com>2013-03-22 14:31:22 +0100
commitb5b040e68f571a858dfe85b65b58687ffc816649 (patch)
tree694da7fe90feb5397e6caf5d0854a3c699db4aeb /ipaserver/install
parent952a7ac9f55e09eeaa7a24400957aac684a616fb (diff)
downloadfreeipa.git-b5b040e68f571a858dfe85b65b58687ffc816649.tar.gz
freeipa.git-b5b040e68f571a858dfe85b65b58687ffc816649.tar.xz
freeipa.git-b5b040e68f571a858dfe85b65b58687ffc816649.zip
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
Diffstat (limited to 'ipaserver/install')
-rw-r--r--ipaserver/install/dsinstance.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py
index c744c9ca..84c1da0c 100644
--- a/ipaserver/install/dsinstance.py
+++ b/ipaserver/install/dsinstance.py
@@ -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")