[Freeipa-devel] [PATCH] 82 ipa-adtrust-install: print list of needed SRV records
Sumit Bose
sbose at redhat.com
Thu Oct 4 10:49:42 UTC 2012
Hi,
this patch should fix the reopend
https://fedorahosted.org/freeipa/ticket/3019 .
bye,
Sumit
-------------- next part --------------
From 4bd788af75f04371e6f8b974340433b41bd4f8e2 Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose at redhat.com>
Date: Thu, 4 Oct 2012 12:40:33 +0200
Subject: [PATCH] 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
---
ipaserver/install/adtrustinstance.py | 22 +++++++++++++---------
1 Datei ge?ndert, 13 Zeilen hinzugef?gt(+), 9 Zeilen entfernt(-)
diff --git a/ipaserver/install/adtrustinstance.py b/ipaserver/install/adtrustinstance.py
index 7bfb6076d7ef5d4f6c16df85c64252d0aad062df..d99c880d4980a2a8cf8810ff1311d80803c523e1 100644
--- a/ipaserver/install/adtrustinstance.py
+++ b/ipaserver/install/adtrustinstance.py
@@ -439,13 +439,18 @@ class ADTRUSTInstance(service.Service):
".dc._msdcs")
err_msg = None
- ret = api.Command['dns_is_enabled']()
- if not ret['result']:
- err_msg = "DNS management was not enabled at install time."
+
+ if self.no_msdcs:
+ err_msg = '--no-msdcs was given, special DNS service records ' \
+ 'are not added to local DNS server'
else:
- if not dns_zone_exists(zone):
- err_msg = "DNS zone %s cannot be managed " \
- "as it is not defined in IPA" % zone
+ ret = api.Command['dns_is_enabled']()
+ if not ret['result']:
+ err_msg = "DNS management was not enabled at install time."
+ else:
+ if not dns_zone_exists(zone):
+ err_msg = "DNS zone %s cannot be managed " \
+ "as it is not defined in IPA" % zone
if err_msg:
self.print_msg(err_msg)
@@ -696,9 +701,8 @@ 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("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", \
self.__restart_dirsrv)
self.step("setting SELinux booleans", \
--
1.7.11.4
More information about the Freeipa-devel
mailing list