Bug 688622

Summary: mixed case hostname can cause issues and confusion
Product: Red Hat Enterprise Linux 6 Reporter: Rob Crittenden <rcritten>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: Chandrasekar Kannan <ckannan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1CC: benl, dpal, jgalipea, nsoman
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-2.0.0-17.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:44:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Rob Crittenden 2011-03-17 14:26:48 UTC
Description of problem:

On both ipa-server-install and ipa-client-install we should check that the hostname returned by the system is all lowercase. Failing to do so may cause issues to programs trying to guess the host principal name in the keytab. They may try to use the mixed case name and fail to match the lower case name as krb libraries consider principal names case-sensitive. 

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

Comment 5 Rob Crittenden 2011-03-17 16:32:05 UTC
Test on both client and server the hostname in /etc/hosts with mixed-case.

Remove mixed case from /etc/hosts.

Test on client with: ipa-client-install --hostname=<mixed-case hostname> ...

Test on server with: ipa-server-install --hostname=<mixed-case hostname> ...

Test on client and server by running: hostname=<mixed-case hostname> and then run the respective installer.

Comment 6 Rob Crittenden 2011-03-22 19:00:30 UTC
master: 15e213d0258f69feaf6031a8721902f63c864ac2

Comment 8 Namita Soman 2011-04-08 16:57:55 UTC
verified with version:
ipa-client-2.0.0-20.el6.x86_64
ipa-server-2.0.0-20.el6.x86_64

# ipa-server-install --setup-dns --forwarder=10.14.63.12 --hostname=RHEL61-server5.testrelm -r TESTRELM -p Secret123 -P Secret123 -a Secret123 
Install fails with error:
 Invalid hostname 'RHEL61-server5.testrelm', must be lower-case.


# ipa-client-install  --hostname=RHEL61-client.testrelm
Invalid hostname 'RHEL61-client.testrelm', must be lower-case.

Comment 9 errata-xmlrpc 2011-05-19 13:44:42 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-0631.html