RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 752874 - IPA needs a check to ensure hostnames 'underscore' is not allowed when installing a replica
Summary: IPA needs a check to ensure hostnames 'underscore' is not allowed when insta...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.2
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: 756082
TreeView+ depends on / blocked
 
Reported: 2011-11-10 16:46 UTC by Kashyap Chamarthy
Modified: 2012-06-20 13:16 UTC (History)
4 users (show)

Fixed In Version: ipa-2.2.0-3.el6
Doc Type: Bug Fix
Doc Text:
No documentation needed.
Clone Of:
Environment:
Last Closed: 2012-06-20 13:16:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0819 0 normal SHIPPED_LIVE ipa bug fix and enhancement update 2012-06-19 20:34:17 UTC

Description Kashyap Chamarthy 2011-11-10 16:46:15 UTC
Description of problem:

IPA needs a check to ensure host-names with 'underscore'  are not allowed as  it affects the host-* commands like trying to delete a host entry, etc.


Replica hostname:
==============
[root@x86_64e(107) ~] hostname
x86_64e.yzhang.redhat.com
[root@x86_64e(107) ~] 
==============

On master, attempt to delete the replica host entry:
==============
[root@x86_64c(105) ~] ipa host-del x86_64e.yzhang.redhat.com
ipa: ERROR: invalid 'hostname': may only include letters, numbers, and -
[root@x86_64c(105) ~] 
==============


Version-Release number of selected component (if applicable):
==============
[root@x86_64c(105) ~] rpm -qi ipa-server
Name        : ipa-server                   Relocations: (not relocatable)
Version     : 2.1.3                             Vendor: Red Hat, Inc.
Release     : 9.el6                         Build Date: Mon 07 Nov 2011 12:00:54 PM PST
Install Date: Tue 08 Nov 2011 01:14:02 PM PST      Build Host: x86-001.build.bos.redhat.com
Group       : System Environment/Base       Source RPM: ipa-2.1.3-9.el6.src.rpm
==============

Comment 2 Martin Kosek 2011-11-11 07:32:35 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2089

Comment 4 Jenny Severance 2012-01-11 18:37:05 UTC
FYI:  this is already automated ...

    rlPhaseStartTest "ipa-host-cli-53: Negative - add host with _"
        command="ipa host-add host_underscore.$RELM --force"
        expmsg="ipa: ERROR: invalid 'hostname': may only include letters, numbers, and -"
        rlRun "verifyErrorMsg \"$command\" \"$expmsg\"" 0 "Verify expected error message."
    rlPhaseEnd


It appears that it is not checked when installing a replica with "_" in the name.

Comment 5 Rob Crittenden 2012-03-01 19:37:54 UTC
Fixed upstream.

master: 61af2c9b1efe021fd6fac2c6c62160cde96ea3cb

ipa-2-2: ae8876e93c02c39c562bcdaa1396fcccaf1280c0

Host name validation should now be consistent.

Comment 8 Martin Kosek 2012-04-19 12:07:14 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No documentation needed.

Comment 9 Namita Soman 2012-05-07 15:42:36 UTC
Verified using ipa-server-2.2.0-12.el6.x86_64

# ipa-replica-prepare --ip-address 10.16.65.43 ipareplica_2.us.testrelm.com
Directory Manager (existing master) password: 

Invalid hostname 'ipareplica_2.us.testrelm.com', only letters, numbers, and - are allowed. DNS label may not start or end with -

Comment 11 errata-xmlrpc 2012-06-20 13:16:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0819.html


Note You need to log in before you can comment on or make changes to this bug.