mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
DNS: Fix realm domains integration with DNS zone add.
Realmdomains integration into DNS commands pre-dates split of DNS forward zones and DNS master zones into two distinct commands. There was an forgotten condition in dnszone_add command which caused omission of DNS master zones with non-empty forwarders from realmdomain list. https://fedorahosted.org/freeipa/ticket/5980 Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
committed by
Martin Basti
parent
084340b1c5
commit
043737e35f
@@ -2804,11 +2804,10 @@ class dnszone_add(DNSZoneBase_add):
|
||||
assert isinstance(dn, DN)
|
||||
|
||||
# Add entry to realmdomains
|
||||
# except for our own domain, forward zones, reverse zones and root zone
|
||||
# except for our own domain, reverse zones and root zone
|
||||
zone = keys[0]
|
||||
|
||||
if (zone != DNSName(api.env.domain).make_absolute() and
|
||||
not options.get('idnsforwarders') and
|
||||
not zone.is_reverse() and
|
||||
zone != DNSName.root):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user