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.
[root@x86_64e(107) ~] hostname
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 -
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:
Group : System Environment/Base Source RPM: ipa-2.1.3-9.el6.src.rpm
The validator should only be enforced on adds and renames.
This is related to ticket https://fedorahosted.org/freeipa/ticket/2115
Martin, you just wrote a similar validator, can you see if that will work here?
Sure, I will just probably need to check that its properly checked in ipa-server-install and ipa-replica-install.
Moving to next month iteration.
A lot more host validation is now done. This may cause previously working tests to now fail.
Metadata Update from @mkosek:
- Issue assigned to mkosek
- Issue set to the milestone: FreeIPA 2.2 Core Effort - 2012/03
to comment on this ticket.
Copyright © 2014-2018 Red Hat
4.0.4 — Documentation