403b09
From 9b4153fdc1af86344da9f4cf6fa139a8dcb18c8c Mon Sep 17 00:00:00 2001
403b09
From: Petr Spacek <pspacek@redhat.com>
403b09
Date: Fri, 12 Aug 2016 17:08:30 +0200
403b09
Subject: [PATCH] DNS: allow to add forward zone to already broken sub-domain
403b09
403b09
Errors during DNS resolution might indicate that forwarder is the
403b09
necessary configuration which is missing. Now we disallow adding a
403b09
forwarder only if the zone is normally resolvable without the forwarder.
403b09
403b09
https://fedorahosted.org/freeipa/ticket/6062
403b09
403b09
Reviewed-By: Martin Basti <mbasti@redhat.com>
403b09
---
403b09
 ipaserver/plugins/dns.py | 2 +-
403b09
 1 file changed, 1 insertion(+), 1 deletion(-)
403b09
403b09
diff --git a/ipaserver/plugins/dns.py b/ipaserver/plugins/dns.py
403b09
index 585b28c15daf00df2918a67585f7fb6e99462f1e..6f1bd716d202bd85dfc46b5eb94f73e85683b917 100644
403b09
--- a/ipaserver/plugins/dns.py
403b09
+++ b/ipaserver/plugins/dns.py
403b09
@@ -2097,7 +2097,7 @@ class DNSZoneBase_add(LDAPCreate):
403b09
 
403b09
         if not options['skip_overlap_check']:
403b09
             try:
403b09
-                check_zone_overlap(keys[-1])
403b09
+                check_zone_overlap(keys[-1], raise_on_error=False)
403b09
             except ValueError as e:
403b09
                 raise errors.InvocationError(e.message)
403b09
 
403b09
-- 
403b09
2.7.4
403b09