mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-24 14:17:41 -05:00
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 Reviewed-By: Oleg Fayans <ofayans@redhat.com>
This commit is contained in:
1 parent
ec95ffaa52
commit
8f01b47ed9
1 file changed
+9
-8
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user