ipa-client-install
The ipa-client-install
command is used to configure a Linux machine as a FreeIPA client, allowing it to authenticate users, manage host information, and use Kerberos services provided by an IPA server. This tool helps in integrating the client machine into the FreeIPA domain, managing users and services centrally.
Basic Usage
Steps for Client Installation
Install FreeIPA Client Package: If not installed, you'll need to first install the FreeIPA client package on the machine.
Run the Installation Command: Once the package is installed, run the
ipa-client-install
command with appropriate options to join the machine to the IPA domain.Example:
Interactive Installation: If you don’t specify all options, the command will prompt you interactively for the required information, such as the IPA server’s FQDN, realm, and admin credentials.
Key Options
--domain=DOMAIN
: Specifies the DNS domain name of the IPA server.Example:
--server=SERVER
: The fully qualified domain name (FQDN) of the IPA server.Example:
--realm=REALM
: The Kerberos realm for the IPA server (usually the uppercase version of the domain).Example:
--mkhomedir
: Automatically creates home directories for users when they log in for the first time.Example:
--no-ntp
: Disable configuration of NTP (Network Time Protocol) for time synchronization. This can be useful if you already have another time sync solution in place.Example:
--hostname
: Set the hostname for the client.Example:
--no-sudo
: Prevents the installation from modifying the sudoers file. By default, IPA client installation configures sudo to work with IPA.Example:
--unattended
: Run the installation in non-interactive mode. Useful for automation or scripting.Example:
--force
: Forces reinstallation if the client is already enrolled.Example:
Example Commands
Simple Client Installation:
Non-interactive Client Installation with Home Directory Creation:
Installation Without NTP Configuration:
Reinstalling a Client with Force Option:
Post-Installation
After installing the FreeIPA client, you should verify that the machine has joined the domain successfully:
Check the Kerberos Ticket:
This command should list a valid Kerberos ticket for the user.
Check IPA Services: You can test IPA-related services like LDAP, Kerberos authentication, or sudo access to ensure the client is properly integrated.
Uninstalling the FreeIPA Client
If you need to remove a client from the IPA domain:
This will remove the FreeIPA client configuration, undo any changes made by the installation, and remove the client from the FreeIPA domain.
Conclusion
The ipa-client-install
tool simplifies the process of integrating Linux machines with FreeIPA for centralized user management and authentication. It allows you to specify domain details, customize sudo settings, automate the installation, and more. By following the installation process and using appropriate options, you can effectively join your machines to the FreeIPA domain and benefit from centralized identity and authentication management.
Last updated