A simple interactive Bash script to automate enrolling a Linux server into a FreeIPA realm. It configures the hostname, detects your OS, installs the required client packages, and runs the enrollment.
- Sudo/Root Privileges: The script must be run as root to install packages and configure system files.
- DNS Resolution: Your server's DNS must point to your FreeIPA server (or a DNS server that can resolve your FreeIPA domain).
- Time Sync: Ensure your system time is synced (e.g., via
chronyd), as Kerberos authentication will fail if the system clock drifts.
- Save the script to your server as
ipa-enroll.sh. - Make it executable:
chmod +x ipa-enroll.sh