ipa-adtrust-install: print list of needed SRV records

If --no-msdcs is given on the command line all needed SRV records will
be printed.

Fixes https://fedorahosted.org/freeipa/ticket/3019
This commit is contained in:
Sumit Bose 2012-10-04 12:40:33 +02:00 committed by Rob Crittenden
parent 0d82862066
commit 2eee4ce83d

View File

@ -467,6 +467,11 @@ class ADTRUSTInstance(service.Service):
".dc._msdcs")
err_msg = None
if self.no_msdcs:
err_msg = '--no-msdcs was given, special DNS service records ' \
'are not added to local DNS server'
else:
ret = api.Command['dns_is_enabled']()
if not ret['result']:
err_msg = "DNS management was not enabled at install time."
@ -724,7 +729,6 @@ class ADTRUSTInstance(service.Service):
self.step("activating sidgen plugin and task", self.__add_sidgen_module)
self.step("activating extdom plugin", self.__add_extdom_module)
self.step("configuring smbd to start on boot", self.__enable)
if not self.no_msdcs:
self.step("adding special DNS service records", \
self.__add_dns_service_records)
self.step("restarting Directory Server to take MS PAC and LDAP plugins changes into account", \