From 77cc5e024601ae7be6ce706499d5f403c8b71408 Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Thu, 13 Oct 2011 12:16:15 +0200 Subject: Hostname used by IPA must be a system hostname Make sure that the hostname IPA uses is a system hostname. If user passes a non-system hostname, update the network settings and system hostname in the same way that ipa-client-install does. This step should prevent various services failures which may not be ready to talk to IPA with non-system hostname. https://fedorahosted.org/freeipa/ticket/1931 --- ipaserver/install/installutils.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'ipaserver/install/installutils.py') diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py index 14c43fef..ea629e5e 100644 --- a/ipaserver/install/installutils.py +++ b/ipaserver/install/installutils.py @@ -160,11 +160,6 @@ def verify_fqdn(host_name, no_host_dns=False, local_hostname=True): except socket.gaierror: pass - system_host_name = socket.gethostname() - if not (host_name + '.').startswith(system_host_name + '.'): - print "Warning: The host name '%s' does not match the system host name '%s'." % (host_name, system_host_name) - print " Some services may not work properly." - if no_host_dns: print "Warning: skipping DNS resolution of host", host_name return -- cgit