Hello,

I found this when reviewing DNS parts of IdM and AD integration guides.

ipa-adtrust-install: Print complete SRV records.
https://fedorahosted.org/freeipa/ticket/5358

-- 
Petr^2 Spacek
From b10bd3b49c24c43a8540830303ab81250de6dd42 Mon Sep 17 00:00:00 2001
From: Petr Spacek <pspa...@redhat.com>
Date: Fri, 9 Oct 2015 14:58:14 +0200
Subject: [PATCH] ipa-adtrust-install: Print complete SRV records

https://fedorahosted.org/freeipa/ticket/5358
---
 ipaserver/install/adtrustinstance.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/ipaserver/install/adtrustinstance.py b/ipaserver/install/adtrustinstance.py
index acc54ab83383b0b514fcd4f14d7480e0b38cb5b1..f7a7899906ca47b4901881fb6f4099ace1780741 100644
--- a/ipaserver/install/adtrustinstance.py
+++ b/ipaserver/install/adtrustinstance.py
@@ -593,9 +593,10 @@ class ADTRUSTInstance(service.Service):
             self.print_msg(err_msg)
             self.print_msg("Add the following service records to your DNS " \
                            "server for DNS zone %s: " % zone)
-            for srv in ipa_srv_rec:
-                for suff in win_srv_suffix:
-                    self.print_msg(" - %s%s"  % (srv[0], suff))
+            for suff in win_srv_suffix:
+                for srv in ipa_srv_rec:
+                    self.print_msg("%s%s IN SRV %s"  % (srv[0], suff, " ".join(srv[1])))
+            self.print_msg("")
             return
 
         for (srv, rdata, port) in ipa_srv_rec:
-- 
2.4.3

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to