40.9. Disabling and Re-enabling Host Entries
This section describes how to disable and re-enable hosts in Identity Management (IdM).
40.9.1. Disabling Hosts 复制链接链接已复制到粘贴板!
Complete this procedure to disable a host entry in IdM.
Domain services, hosts, and users can access an active host. There can be situations when it is necessary to remove an active host temporarily, for maintenance reasons, for example. Deleting the host in such situations is not desired as it removes the host entry and all the associated configuration permanently. Instead, choose the option of disabling the host.
Disabling a host prevents domain users from accessing it without permanently removing it from the domain.
Procedure
Disable a host using the
host-disablecommand. Disabling a host kills the host’s current, active keytabs. For example:$ kinit admin $ ipa host-disable client.example.comAs a result of disabling a host, the host becomes unavailable to all IdM users, hosts and services.
重要Disabling a host entry not only disables that host. It disables every configured service on that host as well.
40.9.2. Re-enabling Hosts 复制链接链接已复制到粘贴板!
Follow this procedure to re-enable a disabled IdM host.
Disabling a host killed its active keytabs, which removed the host from the IdM domain without otherwise touching its configuration entry.
Procedure
To re-enable a host, use the
ipa-getkeytabcommand, adding:-
the
-soption to specify which IdM server to request the keytab from -
the
-poption to specify the principal name the
-koption to specify the file to which to save the keytab.For example, to request a new host keytab from
server.example.comforclient.example.com, and store the keytab in the/etc/krb5.keytabfile:$ ipa-getkeytab -s server.example.com -p host/client.example.com -k /etc/krb5.keytab -D "cn=directory manager" -w password注意You can also use the administrator’s credentials, specifying
-D "uid=admin,cn=users,cn=accounts,dc=example,dc=com". It is important that the credentials correspond to a user allowed to create the keytab for the host.
If the
ipa-getkeytabcommand is run on an active IdM client or server, then it can be run without any LDAP credentials (-Dand-w) if the user has a TGT obtained using, for example,kinit admin. To run the command directly on the disabled host, supply LDAP credentials to authenticate to the IdM server.-
the