summaryrefslogtreecommitdiffstats
path: root/ipaserver
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:34:06 +0100
commit9cb2c757a1527d03e39fb79fa7660bf9e935b7ba (patch)
treee17bcaa0faf99995bdcc3866ed4c2db4d98ef0e1 /ipaserver
parent6f395d9ede7e20305e90c0c6b3150307277081c3 (diff)
downloadfreeipa.git-9cb2c757a1527d03e39fb79fa7660bf9e935b7ba.tar.gz
freeipa.git-9cb2c757a1527d03e39fb79fa7660bf9e935b7ba.tar.xz
freeipa.git-9cb2c757a1527d03e39fb79fa7660bf9e935b7ba.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')
-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 bb8a8019..264c6143 100644
--- a/ipaserver/install/dsinstance.py
+++ b/ipaserver/install/dsinstance.py
@@ -209,6 +209,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)
@@ -508,6 +509,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")