summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2011-08-09 10:30:18 +0200
committerMartin Kosek <mkosek@redhat.com>2011-08-09 12:51:56 +0200
commitbc6e12842640099aaf97200e856075b9440eae28 (patch)
treebcd6dd87956bd9b77732066d415d224029f255e5
parentb9365746723421971d61fab86ed2bc3782cf2140 (diff)
downloadfreeipa-bc6e12842640099aaf97200e856075b9440eae28.zip
freeipa-bc6e12842640099aaf97200e856075b9440eae28.tar.gz
freeipa-bc6e12842640099aaf97200e856075b9440eae28.tar.xz
Fix idnsUpdatePolicy for reverse zone record
Make sure that idnsUpdatePolicy for reverse zone does not contain double trailing "dot" after server installation. https://fedorahosted.org/freeipa/ticket/1591
-rw-r--r--ipaserver/install/bindinstance.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py
index 7aa8a26..676b1a4 100644
--- a/ipaserver/install/bindinstance.py
+++ b/ipaserver/install/bindinstance.py
@@ -204,8 +204,9 @@ def add_zone(name, zonemgr=None, dns_backup=None, ns_hostname=None, ns_ip_addres
def add_reverse_zone(zone, ns_hostname=None, ns_ip_address=None,
ns_replicas=[], update_policy=None, dns_backup=None):
+ zone = normalize_zone(zone)
if update_policy is None:
- update_policy = "grant %s krb5-subdomain %s. PTR;" % (api.env.realm, zone)
+ update_policy = "grant %s krb5-subdomain %s PTR;" % (api.env.realm, zone)
if ns_hostname is None:
# automatically retrieve list of DNS masters