What FreeIPA manages for Linux identity and access
FreeIPA is an integrated identity and authentication solution for Linux and UNIX networked environments, as the FreeIPA project describes it. It stores users, groups, hosts and other objects, issues Kerberos tickets for single sign-on, runs an integrated certificate authority and holds access policy such as host-based access control (HBAC) and sudo rules. Enrolled hosts read that policy through SSSD, so an administrator changes access in one place and every enrolled server applies it. Administrators work through a web interface or the ipa command-line tool.
FreeIPA is licensed GPL-3.0, according to the source repository, and the main repository is hosted on Codeberg. The Downloads page lists Fedora, Red Hat Enterprise Linux, CentOS and Debian as distributions with tested FreeIPA versions. FreeIPA is the upstream project for Red Hat Identity Management (IdM). Teams that want vendor support usually run IdM on RHEL under a subscription, and others run FreeIPA directly. Red Hat's replica topology and disaster recovery guides hold much of the detailed guidance and apply closely to FreeIPA.
FreeIPA suits estates with many Linux servers, sprawling SSH keys and local accounts, or auditors asking who can reach which host with which privileges. In a comparison of FreeIPA vs Active Directory, FreeIPA covers Linux identity and policy. It does not replace Active Directory for Windows desktops and Group Policy. Many organizations keep AD for Windows and workforce accounts and use FreeIPA for Linux, joined by a trust.
Web single sign-on with SAML or OIDC usually comes from an identity broker, such as Keycloak, federated to FreeIPA. FreeIPA can also authenticate users with OAuth 2.0 identity providers that support the Device Authorization flow. The 4.10.1 release notes say Keycloak, Microsoft Azure, Google, GitHub and Okta are known to work. Decide early which system owns the accounts and which one only brokers logins.
Services inside a FreeIPA server
Each server runs several established open-source components. Backup, monitoring and upgrades must cover all of them.
389 Directory Server
389 Directory Server provides multi-master LDAPv3 directory services. It stores users, hosts, policies and configuration, and replication between servers lets the domain survive the loss of one server. Schema or database changes made during an upgrade replicate to every FreeIPA server, so treat the directory as the source of truth for the domain. Plan backups, replication checks and upgrade order around it.
MIT Kerberos KDC
The MIT Kerberos KDC is the core of authentication. Users and hosts obtain tickets for single sign-on to SSH, NFS and other Kerberized services. Kerberos tolerates only small clock differences, so time synchronization is part of the design. The Quick Start Guide also advises a static hostname in /etc/hostname, because Kerberos authentication may break if the hostname changes.
Dogtag certificate system
The Dogtag Certificate System is the integrated CA. It issues host and service certificates, renewed automatically through certmonger, and an optional key recovery authority (KRA) supports the vault feature. The Deployment Recommendations name three CA options: a standalone self-signed CA, a CA signed by an external authority that permits subordinate CAs, or CA-less operation using host certificates from an external CA. Choose before the first install.
Integrated DNS
An optional BIND-based DNS server, with the bind-dyndb-ldap plugin, publishes the SRV records that clients and AD trusts need. The Deployment Recommendations call delegating the FreeIPA domain to the integrated DNS the recommended approach. Estates that run their own DNS can delegate or forward a zone instead. Release 4.13.0 added DNS over TLS installer options such as --dns-over-tls.
SSSD on clients
SSSD resolves identities, authenticates users, applies HBAC and sudo rules and caches credentials, so logins continue during a short loss of contact with the servers. Clients need access to port 443 on an IPA server for enrollment and for ipa command-line communication. Keep SSSD settings the same on every host through enrollment automation.
FreeIPA install and replica setup planning
FreeIPA's Deployment Recommendations and Red Hat's replica topology guide shape this plan. FreeIPA sets no hard cap on server count.
| Topic | Guidance | Why it matters |
|---|---|---|
| First server prerequisites | Use a static, fully qualified hostname with matching forward and reverse DNS. Plan at least 1.2GB of RAM with a CA, and 2GB for a demo or test system. | The installer checks that the hostname is not localhost, is fully qualified, resolves and has a matching reverse lookup. Kerberos may break if the hostname changes later. |
| Install commands | Run dnf install freeipa-server, add freeipa-server-dns for the optional DNS server, then run ipa-server-install. Try it in a VM first, using a reserved test domain such as ipa.test. | The Quick Start Guide warns against using a domain you do not own, such as example.com. |
| Replicas per datacenter | Plan at least two to three replicas in each datacenter, with at least one running extra services such as PKI or DNS. | One server can be patched or lost while local clients keep authenticating. |
| Replication agreements | Keep each replica at four replication agreements or fewer, and connect each server to at least two others. | Two links avoid a single path. More than four adds load without faster updates. |
| Server count | FreeIPA gives no hard cap. The right number depends on entries, geographically separated datacenters, and authentication and LDAP lookup load. | Size the domain from measured load and site layout. |
| CA servers and roles | Run the integrated CA on several servers. Record which server is the CA renewal server and which one publishes the CRL. | These roles sit on one server each and must move before that server is retired. ipa-healthcheck includes IPARenewalMasterCheck and IPACRLManagerCheck. |
| Ports and DNS | Open ports for Kerberos, HTTP, HTTPS, DNS, NTP and LDAP or LDAPS. Give each client at least two DNS servers. firewalld has used the service name freeipa-4 since April 2019. | Clients need port 443 on an IPA server to enroll and to use the ipa command line. |
FreeIPA HBAC rules, sudo rules and Kerberos SSO on Linux
HBAC rules decide which users or groups may reach which hosts through which services, such as sshd or sudo. Build rules from user groups and host groups so that a new server or a new employee needs only a group change. Test each rule with the HBAC test tool on a pilot host group before you disable the default allow-all rule, or administrators can be locked out. Keep a tested break-glass path for administrators during the change. Review rules on a schedule and remove rules for retired systems. Record the owner of each rule so changes have an approver. Document the pilot results before wider rollout.
Store sudo rules in FreeIPA and let SSSD deliver them to enrolled hosts. Group commands into command groups, scope each rule to a host group and a user group, and avoid rules that grant ALL on every host. Once central rules are confirmed on a pilot group, remove local sudoers files so privileged access is reviewed in one place. Rules can also reference AD groups through external groups when a trust is in place. After each change, test as a real user on a real host and compare the result with the rule's intent. Keep a list of who may change sudo rules and require review for new rules that grant root.
Enroll hosts with ipa-client-install or automation so each gets a Kerberos identity and keytab. Clients need access to port 443 on an IPA server for enrollment, and each client should have at least two DNS servers in /etc/resolv.conf. Register services such as HTTP or NFS as principals and issue their certificates from the integrated CA, with automatic renewal through certmonger. Enroll in waves, starting with a host group whose owners can test logins, sudo and file ownership quickly. Keep enrollment in automation so SSSD settings stay consistent across hosts, and a rebuilt host enrolls the same way as a new one.
Kerberos gives Linux users single sign-on to SSH, NFS and other Kerberized services once they hold a ticket. It depends on accurate clocks, a stable hostname and correct DNS records. Use a static hostname, synchronize time on every server and client, and publish the SRV records that clients look up. The 4.13.0 release notes say RC4 and 3DES default encryption types are removed on update, the compat tree and NIS are disabled by default, and certificates get random serial numbers by default. Check older Kerberized services and clients against those defaults before upgrading. For privileged users, require one-time-password two-factor authentication.
FreeIPA Active Directory trust design
Many organizations keep Active Directory for Windows and workforce accounts and use FreeIPA for Linux policy. A cross-forest trust lets AD users authenticate to FreeIPA-managed hosts with their AD credentials, while HBAC and sudo rules stay in FreeIPA. The project README says FreeIPA can integrate with AD through a cross-realm Kerberos trust or user synchronization. Trust controllers use the Samba libraries bundled with FreeIPA, installed with ipa-adtrust-install.
A trust needs separate DNS domains for FreeIPA and AD, name resolution in both directions, common Kerberos encryption types and open firewall ports. Because 4.13.0 removes RC4 and 3DES default encryption types on update, confirm that the AD side agrees on a shared type. Decide how AD users get POSIX IDs before you create the trust. ID mapping derives UIDs and GIDs from AD security identifiers, while a POSIX range uses uidNumber and gidNumber attributes already set in AD. Changing that choice later changes file ownership on every host, so test it on a pilot group first.
The 4.13.0 release adds ipa-idrange-fix, which analyzes ID ranges, finds users and groups outside them and proposes new ipa-local ranges. Run it when ranges look wrong. ID views override attributes such as login shell or home directory for AD users on specific hosts. Test logins from each AD domain in the trust, group resolution and sudo rules that reference AD groups through external groups. The ipa-healthcheck tool also checks AD trust configuration.
FreeIPA hardening, backup and restore
Limit the admin account and Directory Manager credentials to break-glass use, and give administrators personal accounts with delegated roles. Set password policies per group, require one-time-password two-factor authentication for privileged users and keep clocks synchronized. Patch promptly. The 4.13.4 release notes describe CVE-2026-79678, where ipa idp-add reaches Python eval() before its authorization check and any authenticated IPA principal can trigger it. They also describe CVE-2026-76578, where the self-managed-token ACI let an anonymous LDAP client create an OTP token entry. The 4.13.7 notes call that release a stabilization release with several security fixes, including CVE-2026-108122 on all-zero NT hashes and CVE-2026-90958 on failed SMB/NTLM logins not counting toward Kerberos lockout.
ipa-healthcheck is GPL-3.0 and checks certificates and expiration, replication, AD trust configuration, service status, file permissions and filesystem space on the server it runs on. Run it as root with options such as --failures-only, --all, --source, --check and --output-file. It ships a systemd timer that is not enabled by default, so enable it and collect the output centrally. Its FileSystemSpaceCheck enforces a hard-coded 20% minimum free space, so size disks with that in mind.
FreeIPA backup and restore combines replication, virtual machine snapshots and ipa-backup. A full-server backup includes configuration and LDAP data and needs services stopped, which a hidden replica allows without affecting clients. A data-only backup can run online. Back up a server that holds the CA, DNS and KRA roles you use, and encrypt backups with GPG before they leave it. Red Hat's disaster recovery guide covers these options.
A full restore expects a server with the same hostname, IP address and IdM software version as the original. When one server fails, rebuilding it as a new replica is usually better than restoring, since a backup is usually older than replicated data. Keep restore from backup for cases such as losing every CA server or data corruption, and rehearse it in an isolated network.
FreeIPA upgrades, latest version and migration paths
The Codeberg releases page lists FreeIPA 4.13.7 with a tag date of 2026-12-01, followed by 4.13.6 on 2026-11-30, 4.13.5 on 2026-11-09, 4.13.4 on 2026-09-07, 4.13.3 on 2026-08-19 and 4.13.2 on 2026-07-16. The 4.13.0 release notes list a beta modern WebUI that runs alongside the classic UI, DNS over TLS, a new LDAP system accounts plugin, random certificate serial numbers by default, and removal of RC4 and 3DES default encryption types on update. Read them before moving from an older release.
The Upgrade page says that with multiple servers you may upgrade them one at a time, and you should finish all of them within days or weeks, not months. Schema or Directory Server database changes made during an upgrade replicate to all FreeIPA servers, and downgrading after an upgrade is not supported, so take a backup and snapshot first. Check replication and services after each server. For in-place distribution upgrades where the LDAP server cannot run, FreeIPA 4.2.0 or newer needs ipa-server-upgrade run manually after first boot.
Move to a new major operating system release through replicas. Install a server on the new release as a replica, move the CA renewal server and CRL publisher roles to it, then decommission the old servers. Moving from FreeIPA on another distribution to IdM on RHEL follows the same replica approach. Migrating from an existing LDAP directory or NIS uses FreeIPA's migration tooling and a password plan, since users may need to authenticate once before Kerberos keys exist.
Containers follow similar rules. The freeipa-container project says in-place container upgrades only work within the same major OS version, tells you to back up /data first and recommends adding replicas for cross-major upgrades.
FreeIPA operating ownership
FreeIPA sits underneath every enrolled login, so ownership has to cover the servers, the policy and the hosts that depend on them.
Identity platform
- Maintains servers, replication and the topology diagram.
- Tracks the CA renewal and CRL publisher role holders.
- Runs ipa-healthcheck, backups and restore rehearsals.
- Applies upgrades one server at a time.
Access policy owners
- Approve HBAC and sudo rule changes.
- Review privileged groups and AD group mappings.
- Remove rules for retired systems.
- Test new rules on a pilot host group first.
Linux and host teams
- Enroll hosts through automation with consistent SSSD settings.
- Remove local accounts once central rules apply.
- Report login failures with host, user and time.
Security and PKI
- Protect Directory Manager and admin credentials.
- Monitor certificate expiry and CA health.
- Keep backups and their keys under separate control.
- Track security releases and apply fixes.
FreeIPA vs Active Directory, install and container questions
FreeIPA vs Active Directory: can FreeIPA replace Active Directory?
For Linux identity and policy, often yes. For Windows desktops and Group Policy, no. A common pattern keeps AD for Windows and connects it to FreeIPA with a cross-forest trust. AD users can then sign in to FreeIPA-managed hosts while Linux access policy, meaning HBAC and sudo rules, lives in FreeIPA. Decide the POSIX ID approach before creating the trust, because changing it later changes file ownership on every host.
What are the FreeIPA system requirements and how do I run ipa-server-install?
The Quick Start Guide covers Fedora and Red Hat Enterprise Linux and recommends trying FreeIPA in a VM first. Installing with a CA needs at least 1.2GB of RAM, and 2GB is recommended for a demo or test system. Install with dnf install freeipa-server, add freeipa-server-dns for the optional DNS server, then run ipa-server-install. The installer requires a fully qualified hostname that resolves and has a matching reverse lookup.
Can I run FreeIPA in a Docker container?
Yes. The freeipa-container project publishes images at quay.io/freeipa/freeipa-server and docker.io/freeipa/freeipa-server. It runs systemd to manage all FreeIPA services in one container, with data in a volume at /data. Its README says plain podman run is typically sufficient and works rootless, and that privileged mode is explicitly unsupported. The installer runs when /data is empty. A Kubernetes example sets spec.hostUsers: false and names containerd 2.1+ and CRI-O 1.32+ as known-working runtimes.
How does FreeIPA work with an external IdP such as Keycloak?
There are two patterns. Web single sign-on with SAML or OIDC usually comes from an identity broker, such as Keycloak, federated to FreeIPA. Separately, FreeIPA can authenticate users with OAuth 2.0 identity providers that support the Device Authorization flow, and the 4.10.1 release notes say Keycloak, Microsoft Azure, Google, GitHub and Okta are known to work. Decide which system owns the accounts before you connect either one.
What is the latest FreeIPA version?
As of December 2026, the Codeberg releases page lists FreeIPA 4.13.7 with a tag date of 2026-12-01. The 4.13.7 release notes call it a stabilization release with several security fixes. The Downloads page also lists a nightly build in the FreeIPA Master Nightly COPR repository. Check which version your distribution ships before you plan an upgrade.
What is the difference between FreeIPA and Red Hat IdM?
FreeIPA is the upstream open-source project for Red Hat Identity Management and is licensed GPL-3.0. Teams that want vendor support usually run IdM on RHEL under a subscription. Others run FreeIPA directly, and the Downloads page lists Fedora, Red Hat Enterprise Linux, CentOS and Debian as distributions with tested FreeIPA versions. Red Hat's IdM documentation holds detailed planning and recovery guidance that applies closely to FreeIPA.
Should we use the FreeIPA integrated DNS?
The Deployment Recommendations call delegating the FreeIPA domain to the integrated DNS the recommended approach, and it simplifies SRV records and trust setup. The integrated DNS is optional and installs with freeipa-server-dns. If another team owns DNS, a delegated or forwarded zone works as long as the records FreeIPA needs are published and maintained. Either way, give each client at least two DNS servers in /etc/resolv.conf.
How do I back up and restore FreeIPA?
Use ipa-backup. A full-server backup includes configuration and LDAP data and needs services stopped, so take it on a hidden replica. A data-only backup can run online. Encrypt backups with GPG before they leave the server. A full restore expects the same hostname, IP address and software version as the original. When one server fails, rebuilding it as a replica is usually better. Rehearse restores in an isolated network.
Scope and handover for a FreeIPA deployment
Effort depends on the number of sites and servers, whether an AD trust is needed, how many hosts and local accounts exist today, the state of DNS and time synchronization, and the amount of sudo and access policy to translate. Cleaning up existing local accounts and privileges often takes longer than installing the servers.
DeployOpen plans the topology, deploys and hardens the servers, configures the CA and DNS, sets up the AD trust where needed, translates access policy into HBAC and sudo rules, automates client enrollment, configures encrypted backups and rehearses a recovery.
Handover includes the topology diagram with role holders, policy inventory, enrollment automation, restore record and upgrade procedure. The result runs on servers you control.
Sources and further reading
- FreeIPA project ↗
- FreeIPA source repository and license ↗
- Red Hat: Planning the IdM replica topology ↗
- Red Hat: Preparing for disaster recovery with IdM ↗
- FreeIPA Codeberg ↗
- FreeIPA Downloads ↗
- FreeIPA Quick Start ↗
- FreeIPA Deployment Recommendations ↗
- FreeIPA Upgrade ↗
- FreeIPA Codeberg Releases ↗
- FreeIPA 4.13.0 notes ↗
- FreeIPA 4.10.1 notes ↗
- FreeIPA 4.13.4 notes ↗
- FreeIPA 4.13.7 notes ↗
- freeipa-healthcheck ↗
- freeipa-container ↗

