FreeIPA is an integrated Identity and Authentication solution for Linux/UNIX networked environments.  |

#2089 IPA needs a check to ensure hostnames 'underscore' is not allowed as it affects the host-* commands

Created 6 years ago by mkosek
Modified 2 years ago

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
[root@x86_64e(107) ~]

On master, attempt to delete the replica host entry:
[root@x86_64c(105) ~] ipa host-del
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:
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

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.

master: 61af2c9

ipa-2-2: ae8876e

A lot more host validation is now done. This may cause previously working tests to now fail.

2 years ago

Metadata Update from @mkosek:
- Issue assigned to mkosek
- Issue set to the milestone: FreeIPA 2.2 Core Effort - 2012/03

Login to comment on this ticket.