summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2012-09-25 10:36:01 +0200
committerMartin Kosek <mkosek@redhat.com>2012-09-26 13:44:11 +0200
commitc49bc80494938a41d2c34c7ac1cde1fe3a14ddd5 (patch)
treed184696f792b1966373604157c2cc916b6940d4b /install
parentba5248135c0ca9d64deddc9d11ea1a606d87bc27 (diff)
downloadfreeipa-c49bc80494938a41d2c34c7ac1cde1fe3a14ddd5.tar.gz
freeipa-c49bc80494938a41d2c34c7ac1cde1fe3a14ddd5.tar.xz
freeipa-c49bc80494938a41d2c34c7ac1cde1fe3a14ddd5.zip
Use custom zonemgr for reverse zones
When DNS is being installed during ipa-{server,dns,replica}-install, forward and reverse zone is created. However, reverse zone was always created with default zonemgr even when a custom zonemgr was passed to the installer as this functionality was missing in function creating reverse zone. Consolidate functions creating forward and reverse zones to avoid code duplication and errors like this one. Reverse zones are now created with custom zonemgr (when entered by user). https://fedorahosted.org/freeipa/ticket/2790
Diffstat (limited to 'install')
-rwxr-xr-xinstall/tools/ipa-replica-prepare4
1 files changed, 2 insertions, 2 deletions
diff --git a/install/tools/ipa-replica-prepare b/install/tools/ipa-replica-prepare
index 56f132a38..dea52ea1e 100755
--- a/install/tools/ipa-replica-prepare
+++ b/install/tools/ipa-replica-prepare
@@ -28,7 +28,7 @@ import krbV
from ipapython import ipautil
from ipaserver.install import bindinstance, dsinstance, installutils, certs
-from ipaserver.install.bindinstance import add_zone, add_reverse_zone, add_fwd_rr, add_ptr_rr, dns_container_exists
+from ipaserver.install.bindinstance import add_zone, add_fwd_rr, add_ptr_rr, dns_container_exists
from ipaserver.install.replication import enable_replication_version_checking
from ipaserver.install.installutils import resolve_host, BadHostError, HostLookupError
from ipaserver.plugins.ldap2 import ldap2
@@ -466,7 +466,7 @@ def main():
if reverse_zone is not None:
print "Using reverse zone %s" % reverse_zone
- add_reverse_zone(reverse_zone)
+ add_zone(reverse_zone)
add_ptr_rr(reverse_zone, ip_address, replica_fqdn)
try: