Chapter 13. Renaming IdM client systems

The following sections describe how to change the host name of an Identity Management (IdM) client system.


Renaming a client is a manual procedure. Do not perform it unless changing the host name is absolutely required.

Renaming an IdM client involves:

  1. Preparing the host. For details, see Section 13.1, “Prerequisites”
  2. Uninstalling the IdM client from the host. For details, see Section 13.2, “Uninstalling an IdM client”
  3. Renaming the host. For details, see Section 13.3, “Renaming the host system”
  4. Installing the IdM client on the host with the new name. For details, see Section 13.4, “Re-installing an IdM client”
  5. Configuring the host after the IdM client installation. For details, see Section 13.5, “Re-adding services, re-generating certificates, and re-adding host groups”

13.1. Prerequisites

Before uninstalling the current client, make note of certain settings for the client. You will apply this configuration after re-enrolling the machine with a new host name.

  • Identify which services are running on the machine:

    • Use the ipa service-find command, and identify services with certificates in the output:

      $ ipa service-find
    • In addition, each host has a default host service which does not appear in the ipa service-find output. The service principal for the host service, also called a host principal, is host/
  • For all service principals displayed by ipa service-find, determine the location of the corresponding keytabs on the system:

    # find / -name "*.keytab"

    Each service on the client system has a Kerberos principal in the form service_name/host_name@REALM, such as ldap/

  • Identify all host groups to which the machine belongs.

    # ipa hostgroup-find

13.2. Uninstalling an IdM client

Uninstalling a client removes the client from the Identity Management (IdM) domain, along with all of the specific IdM configuration of system services, such as System Security Services Daemon (SSSD). This restores the previous configuration of the client system.


  1. Run the ipa-client-install --uninstall command:

    # ipa-client-install --uninstall
  2. Remove the DNS entries for the client host manually from the server:

    # ipa dnsrecord-del
    Record name: old-client-name
    Zone name:
    No option to delete specific record provided.
    Delete all? Yes/No (default No): yes
    Deleted record "old-client-name"
  3. For each identified keytab other than /etc/krb5.keytab, remove the old principals:

    [root@client ~]# ipa-rmkeytab -k /path/to/keytab -r EXAMPLE.COM
  4. On an IdM server, remove the host entry. This removes all services and revokes all certificates issued for that host:

    [root@server ~]# ipa host-del

13.3. Renaming the host system

Rename the machine as required. For example:

# hostnamectl set-hostname

You can now re-install the Identity Management (IdM) client to the IdM domain with the new host name.

13.4. Re-installing an IdM client

Install an client on your renamed host following the procedure described in Chapter 9, Installing an IdM client: Basic scenario.

13.5. Re-adding services, re-generating certificates, and re-adding host groups

  1. On the Identity Management (IdM) server, add a new keytab for every service identified in Section 13.1, “Prerequisites”.

    [root@server ~]# ipa service-add service_name/new-client-name
  2. Generate certificates for services that had a certificate assigned in Section 13.1, “Prerequisites”. You can do this:

    • Using the IdM administration tools
    • Using the certmonger utility
  3. Re-add the client to the host groups identified in Section 13.1, “Prerequisites”.