https://fedorahosted.org/freeipa/ticket/5686

Patch attached.
From 19a00a076101ff25ba0cd626bab8b5f8a6e6cb68 Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Wed, 24 Feb 2016 14:33:34 +0100
Subject: [PATCH] Make PTR records check optional for IPA installation

PTR records are not mandratory for IPA, result fo checks should be only
warning not hard error.

https://fedorahosted.org/freeipa/ticket/5686
---
 ipaserver/install/installutils.py | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py
index 6c00c3482df4945b3a74fa7d656eb2d1d1347594..4489cd80b9640c33a4f8fdcf383659b80647bd25 100644
--- a/ipaserver/install/installutils.py
+++ b/ipaserver/install/installutils.py
@@ -203,15 +203,16 @@ def verify_fqdn(host_name, no_host_dns=False, local_hostname=True):
             revname = socket.gethostbyaddr(address)[0]
         except Exception as e:
             root_logger.debug('Check failed: %s', e)
-            raise HostReverseLookupError(
+            root_logger.error(
                 "Unable to resolve the IP address %s to a host name, "
-                "check /etc/hosts and DNS name resolution" % address)
-        root_logger.debug('Found reverse name: %s', revname)
-        if revname != host_name:
-            raise HostReverseLookupError(
-                "The host name %s does not match the value %s obtained "
-                "by reverse lookup on IP address %s"
-                % (host_name, revname, address))
+                "check /etc/hosts and DNS name resolution", address)
+        else:
+            root_logger.debug('Found reverse name: %s', revname)
+            if revname != host_name:
+                root_logger.error(
+                    "The host name %s does not match the value %s obtained "
+                    "by reverse lookup on IP address %s", host_name, revname,
+                    address)
         verified.add(address)
 
 
-- 
2.5.0

-- 
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