Do not set DNS discovery domain in server mode

In server mode, the discovery domain should be left unset in all
cases as the DNS discovery is only driven by the AD domains.

https://fedorahosted.org/freeipa/ticket/3947
This commit is contained in:
Martin Kosek 2013-10-03 15:09:02 +02:00
parent 88759cf7b6
commit 7d2d1cb59d

View File

@ -1097,7 +1097,8 @@ def configure_sssd_conf(fstore, cli_realm, cli_domain, cli_server, options, clie
domain.add_provider('ipa', 'id')
#add discovery domain if client domain different from server domain
if cli_domain != client_domain:
#do not set this config in server mode (#3947)
if not options.on_master and cli_domain != client_domain:
domain.set_option('dns_discovery_domain', cli_domain)
if not options.on_master: