diff options
author | Martin Kosek <mkosek@redhat.com> | 2011-08-09 10:30:18 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2011-08-09 12:51:56 +0200 |
commit | bc6e12842640099aaf97200e856075b9440eae28 (patch) | |
tree | bcd6dd87956bd9b77732066d415d224029f255e5 /ipaserver | |
parent | b9365746723421971d61fab86ed2bc3782cf2140 (diff) | |
download | freeipa-bc6e12842640099aaf97200e856075b9440eae28.tar.gz freeipa-bc6e12842640099aaf97200e856075b9440eae28.tar.xz freeipa-bc6e12842640099aaf97200e856075b9440eae28.zip |
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
Diffstat (limited to 'ipaserver')
-rw-r--r-- | ipaserver/install/bindinstance.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py index 7aa8a266..676b1a47 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 |