| Summary: | IPA needs a check to ensure hostnames 'underscore' is not allowed when installing a replica | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Kashyap Chamarthy <kchamart> |
| Component: | ipa | Assignee: | Rob Crittenden <rcritten> |
| Status: | CLOSED ERRATA | QA Contact: | IDM QE LIST <seceng-idm-qe-list> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.2 | CC: | grajaiya, jgalipea, mkosek, nsoman |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | ipa-2.2.0-3.el6 | Doc Type: | Bug Fix |
| Doc Text: |
No documentation needed.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-06-20 13:16:53 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 756082 | ||
|
Description
Kashyap Chamarthy
2011-11-10 16:46:15 UTC
Upstream ticket: https://fedorahosted.org/freeipa/ticket/2089 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.
Fixed upstream. master: 61af2c9b1efe021fd6fac2c6c62160cde96ea3cb ipa-2-2: ae8876e93c02c39c562bcdaa1396fcccaf1280c0 Host name validation should now be consistent.
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.
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 - 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 |