Este contenido no está disponible en el idioma seleccionado.
Chapter 15. Installing an IdM client with Kickstart
Automate Identity Management client enrollment during RHEL installation to reduce manual configuration. This process creates a consistent domain setup across new systems and simplifies large-scale deployments.
15.1. Installing an IdM client with Kickstart Copiar enlaceEnlace copiado en el portapapeles!
Install Identity Management (IdM) clients by using Kickstart files to automate enrollment during system installation and reduce manual configuration.
Prerequisites
-
Do not start the
sshdservice prior to the Kickstart enrollment. Startingsshdbefore enrolling the client generates the SSH keys automatically, but the Kickstart enrollment process uses a script for the same purpose, which is the preferred solution.
Procedure
Pre-create the host entry on the IdM server and set a one-time password for the entry:
ipa host-add <idm_client_fqdn> --password=<password>
$ ipa host-add <idm_client_fqdn> --password=<password>Copy to Clipboard Copied! Toggle word wrap Toggle overflow The password is used by Kickstart to authenticate during the client installation and expires after the first authentication attempt. After the client is successfully installed, it authenticates using its keytab.
Create a Kickstart file with the required components:
Add the
ipa-clientpackage to the%packagessection of the Kickstart file:%packages ... ipa-client ...
%packages ... ipa-client ...Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add a
%postsection with the required post installation instructions:- Instructions to generate SSH keys before enrollment.
Instructions to run the
ipa-client-installutility.For example, the post-installation instructions for a Kickstart installation that uses a one-time password and retrieves the required options from the command line rather than via DNS can look like this:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- Use the Kickstart file to install the IdM client system.
Verification
- Log in to the newly deployed client system.
Verify that the client can obtain information about users defined on the server by checking that you can resolve a user. For example, to check the default
adminuser:id admin
[user@client ~]$ id adminCopy to Clipboard Copied! Toggle word wrap Toggle overflow uid=1254400000(admin) gid=1254400000(admins) groups=1254400000(admins)
uid=1254400000(admin) gid=1254400000(admins) groups=1254400000(admins)Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify that authentication works correctly by switching to a root user from a non-root user:
su -
[user@client ~]$ su -Copy to Clipboard Copied! Toggle word wrap Toggle overflow Last login: Thu Oct 18 18:39:11 CEST 2018 from 192.168.122.1 on pts/0 [root@client ~]#
Last login: Thu Oct 18 18:39:11 CEST 2018 from 192.168.122.1 on pts/0 [root@client ~]#Copy to Clipboard Copied! Toggle word wrap Toggle overflow
15.2. Kickstart-based client installation Copiar enlaceEnlace copiado en el portapapeles!
Kickstart-based client installation enables automates system enrollment into an Identity Management (IdM) domain, eliminates manual post-installation configuration, and ensures consistent domain integration across multiple systems.
The ipa-client package provides the necessary tools and utilities for domain enrollment, including the ipa-client-install command-line utility.
During a Kickstart-based installation, the system installs the ipa-client package and executes post-installation scripts that enroll the client into the IdM domain.
- Post-installation configuration
The post-installation section executes the enrollment commands using predefined parameters such as the domain name, realm, server location, and authentication credentials.
The post-instllation section must include:
-
An instruction for ensuring SSH keys are generated before enrollment. The Kickstart script generates SSH keys instead of relying on the
sshdservice to generate them automatically. An instruction to run the
ipa-client-installutility, while specifying:- All the required information to access and configure the IdM domain services.
- The password which you set when pre-creating the client host on the IdM server.
Optionally, you can also include other options in the Kickstart file, such as:
-
For a non-interactive installation, add the
--unattendedoption toipa-client-install. To let the client installation script request a certificate for the machine:
-
Add the
--request-certoption toipa-client-install. Set the system bus address to
/dev/nullfor both thegetcertandipa-client-installutility in the Kickstartchrootenvironment. To do this, add these lines to the post-installation instructions in the Kickstart file before theipa-client-installinstruction:env DBUS_SYSTEM_BUS_ADDRESS=unix:path=/dev/null getcert list env DBUS_SYSTEM_BUS_ADDRESS=unix:path=/dev/null ipa-client-install
# env DBUS_SYSTEM_BUS_ADDRESS=unix:path=/dev/null getcert list # env DBUS_SYSTEM_BUS_ADDRESS=unix:path=/dev/null ipa-client-installCopy to Clipboard Copied! Toggle word wrap Toggle overflow
-
Add the
-
An instruction for ensuring SSH keys are generated before enrollment. The Kickstart script generates SSH keys instead of relying on the