freeipa

FreeIPA is an integrated Identity and Authentication solution for Linux/UNIX networked environments.  |  http://www.freeipa.org/

#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

https://bugzilla.redhat.com/show_bug.cgi?id=752874

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
==============

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.

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.

defect

IPA

1

https://bugzilla.redhat.com/show_bug.cgi?id=752874

cancel