From aab190cc5d38edf3f4fbf0a6c12911dfc8f37fd3 Mon Sep 17 00:00:00 2001 From: Petr Spacek Date: Wed, 6 Jan 2016 15:51:35 +0100 Subject: Fix --auto-reverse option in --unattended mode. Now the option correctly adds missing reverse zones even in unattended mode. Still, this is not sufficient in all cases because 'automatic empty zones' created by BIND (as specified in RFC 6303) can shadow the reverse zones hosted on other servers. This needs to be solved in a separate patch. https://fedorahosted.org/freeipa/ticket/5559 Reviewed-By: David Kupka --- ipaserver/install/bindinstance.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py index fab458ce4..b17ba23bd 100644 --- a/ipaserver/install/bindinstance.py +++ b/ipaserver/install/bindinstance.py @@ -441,7 +441,8 @@ def check_reverse_zones(ip_addresses, reverse_zones, options, unattended, search_reverse_zones=False): checked_reverse_zones = [] - if not options.no_reverse and not reverse_zones: + if (not options.no_reverse and not reverse_zones + and not options.auto_reverse): if unattended: options.no_reverse = True else: -- cgit