PTR records can be added without specify FQDN zone name

Now adding PTR records will accept zones both with and without end dot.

Ticket: https://fedorahosted.org/freeipa/ticket/4151
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
Martin Basti 2014-01-31 16:30:31 +01:00 committed by Martin Kosek
parent daf2d64f83
commit 1adeb68182

View File

@ -2149,6 +2149,9 @@ class dnsrecord(LDAPObject):
addr = u''
else:
addr = keys[-1]
zone = normalize_zone(zone)
zone_len = 0
for valid_zone in REVERSE_DNS_ZONES:
if zone.endswith(valid_zone):