#1375 See what happens if an IP address is passed into --hostname
Closed: Fixed None Opened 12 years ago by rcritten.

Many utilities take --hostname as an argument. I would guess that things would fail miserably if someone provided an IP address there instead of a hostname. Probably worth investigating to see how we handle it.


We do not seem to handle this properly in the case of a client install:

Proceed with fixed values and no DNS discovery? [no]: y
Hostname: 192.168.166.20
Realm: EXAMPLE.COM
DNS Domain: example.com
IPA Server: doberman.example.com
BaseDN: dc=example,dc=com


Continue to configure the system with these values? [no]: y
User authorized to enroll computers: admin
Password for admin@EXAMPLE.COM:

Enrolled in IPA realm EXAMPLE.COM 
Created /etc/ipa/default.conf
Configured /etc/sssd/sssd.conf
Configured /etc/krb5.conf for IPA realm EXAMPLE.COM
Warning: Hostname (192.168.166.20) not found in DNS
DNS server record set to: 192.168.166.20 -> 192.168.166.20
SSSD enabled
Kerberos 5 enabled
NTP enabled
Client configuration complete.
[root@rawhide rcrit]# klist -kt /etc/krb5.keytab
Keytab name: WRFILE:/etc/krb5.keytab
KVNO Timestamp         Principal
---- ----------------- --------------------------------------------------------
   1 07/22/11 15:58:54 host/192.168.166.20@EXAMPLE.COM
   1 07/22/11 15:58:55 host/192.168.166.20@EXAMPLE.COM
   1 07/22/11 15:58:55 host/192.168.166.20@EXAMPLE.COM
   1 07/22/11 15:58:55 host/192.168.166.20@EXAMPLE.COM

Works ok in ipa-server-install:

ipa-server-install --hostname=192.168.166.20 --selfsign -a password -p password

The log file for this installation can be found in /var/log/ipaserver-install.log
==============================================================================
This program will set up the FreeIPA Server.

This includes:
  * Configure the Network Time Daemon (ntpd)
  * Create and configure an instance of Directory Server
  * Create and configure a Kerberos Key Distribution Center (KDC)
  * Configure Apache (httpd)
  * Configure the KDC to enable PKINIT

To accept the default shown in brackets, press the Enter key.

Enter the fully qualified domain name of the computer
on which you're setting up server software. Using the form
<hostname>.<domainname>
Example: master.example.com.


Server host name [192.168.166.20]:

The host name 192.168.166.20 does not match the reverse lookup rawhide.example.com

Metadata Update from @rcritten:
- Issue assigned to jcholast
- Issue set to the milestone: FreeIPA 2.1 - 2011/07

7 years ago

Login to comment on this ticket.

Metadata