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 <dkupka@redhat.com>
This commit is contained in:
Petr Spacek authored and Martin Basti committed 2016-01-08 10:13:23 +01:00
1 parent af0e0e5153
commit aab190cc5d
1 file changed
+2 -1
+2 -1
View File
@@ -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: