diff options
author | Petr Spacek <pspacek@redhat.com> | 2016-01-06 15:51:35 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-01-08 10:13:23 +0100 |
commit | aab190cc5d38edf3f4fbf0a6c12911dfc8f37fd3 (patch) | |
tree | 0217e01333cca15dc690384ba4d88a465b4a9b04 /ipaserver/install/bindinstance.py | |
parent | af0e0e5153afdcdf5b8165162ae4ef5d60ecbe0b (diff) | |
download | freeipa-aab190cc5d38edf3f4fbf0a6c12911dfc8f37fd3.tar.gz freeipa-aab190cc5d38edf3f4fbf0a6c12911dfc8f37fd3.tar.xz freeipa-aab190cc5d38edf3f4fbf0a6c12911dfc8f37fd3.zip |
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>
Diffstat (limited to 'ipaserver/install/bindinstance.py')
-rw-r--r-- | ipaserver/install/bindinstance.py | 3 |
1 files changed, 2 insertions, 1 deletions
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: |