mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-28 09:06:44 -06:00
ipatests: tasks: Fix dns configuration for trusts
Properly configure forwarders to the AD zone with respect to newly created ipa dnsforwardzone commands. https://fedorahosted.org/freeipa/ticket/4401 Reviewed-By: Petr Spacek <pspacek@redhat.com>
This commit is contained in:
parent
d1d2536375
commit
4254423f83
@ -315,15 +315,7 @@ def configure_dns_for_trust(master, ad):
|
||||
|
||||
kinit_admin(master)
|
||||
|
||||
if is_subdomain(master.domain.name, ad.domain.name):
|
||||
master.run_command(['ipa', 'dnszone-add', ad.domain.name,
|
||||
'--name-server', ad.hostname,
|
||||
'--admin-email', 'hostmaster@%s' % ad.domain.name,
|
||||
'--forwarder', ad.ip,
|
||||
'--forward-policy', 'only',
|
||||
'--ip-address', ad.ip,
|
||||
'--force'])
|
||||
elif is_subdomain(ad.domain.name, master.domain.name):
|
||||
if is_subdomain(ad.domain.name, master.domain.name):
|
||||
master.run_command(['ipa', 'dnsrecord-add', master.domain.name,
|
||||
'%s.%s' % (ad.shortname, ad.netbios),
|
||||
'--a-ip-address', ad.ip])
|
||||
@ -336,13 +328,10 @@ def configure_dns_for_trust(master, ad):
|
||||
master.run_command(['ipa', 'dnszone-mod', master.domain.name,
|
||||
'--allow-transfer', ad.ip])
|
||||
else:
|
||||
master.run_command(['ipa', 'dnszone-add', ad.domain.name,
|
||||
'--name-server', ad.hostname,
|
||||
'--admin-email', 'hostmaster@%s' % ad.domain.name,
|
||||
master.run_command(['ipa', 'dnsforwardzone-add', ad.domain.name,
|
||||
'--forwarder', ad.ip,
|
||||
'--forward-policy', 'only',
|
||||
'--ip-address', ad.ip,
|
||||
'--force'])
|
||||
])
|
||||
|
||||
|
||||
def establish_trust_with_ad(master, ad, extra_args=()):
|
||||
|
Loading…
Reference in New Issue
Block a user