FreeIPA high availability

A practical guide to designing FreeIPA high availability: replica counts per datacenter, replication agreement limits, CA and DNS on several replicas, the first server's renewal role, client DNS failover and restore testing.

On this page

Why FreeIPA high availability takes more than adding a second server

Every Linux login that goes through FreeIPA depends on its servers answering, so high availability has to be designed before the first replica is installed, not after an outage. A second server is the easy part. The harder question is what keeps working when one server, or a whole site, disappears, because FreeIPA is not a single service. The 389 Directory Server replicas hold users, groups, hosts and policies and replicate them in multi-master fashion. The MIT Kerberos KDC issues the tickets that single sign-on depends on. The Dogtag certificate authority issues and renews certificates. Optional ISC BIND DNS answers the SRV and host lookups that clients use to find servers. SSSD and each client's resolver settings decide which server a host tries first and how long it waits before trying another. Each of these components fails differently, and a design that protects the directory can still leave logins or certificate renewals broken.

Teams usually need this design when a Linux identity service sits in the path of many hosts, services and administrators, and when a single datacenter loss would stop logins, sudo rules or host access checks for a large part of the estate. The deployment recommendations describe a starting pattern of two to three replicas in each datacenter, a limit of no more than four replication agreements per replica, and at least one replica per datacenter running PKI or DNS if those services are used. Confirm those figures against the current recommendations and against your own topology before you copy them, since replica placement also depends on network latency, the number of hosts enrolled and your change process.

Which FreeIPA components need redundancy and why

A FreeIPA deployment is several services working together, and each one fails differently. The cards below show what stops when each component is down and what the design must provide so that logins, certificate operations and name resolution keep working through a single failure.

Multi-master 389 Directory Server replicas

The 389 Directory Server holds users, groups, hosts and policies, and every replica accepts writes. If one replica fails, clients can still authenticate against the others, but group changes, host enrollments and policy updates must be made on a surviving replica. The recommendations call for at least two to three replicas in each datacenter, and each replica should have no more than four replication agreements. Check that replication is healthy after every change and that no replica is left isolated from the topology.

Deployment recommendations

MIT Kerberos KDC

The Kerberos KDC issues the tickets that give single sign-on to Linux hosts and services. It runs on every FreeIPA server, so clients can request tickets from any replica they can reach. When the KDC is unreachable from a site, users there lose Kerberos login even though the directory may still answer. Confirm that each site has at least one reachable KDC and that clients are configured to find more than one of them.

Dogtag certificate authority

The Dogtag CA issues host and service certificates. Running it on only one server makes certificate requests a single point of failure, so the recommendations call for PKI on at least one replica per datacenter. Plan which replicas run the CA before go-live, and confirm that enrollment and revocation requests reach a live CA server during a planned outage on another replica.

Optional ISC BIND DNS servers

When FreeIPA manages DNS, the integrated BIND servers publish the service records that clients use to find the KDC and LDAP servers. If DNS is installed on only one replica, clients in other sites may fail to locate any server. The recommendations call for at least one DNS-running replica per datacenter. Test name resolution for SRV records from a client in each site while one DNS server is stopped.

SSSD and resolver lists on clients

SSSD on each client caches identities and talks to the servers it has been told about. Its resolver configuration in resolv.conf decides whether a client can find any FreeIPA DNS server when one fails. The recommendations call for at least two DNS servers in each client's resolv.conf. Clients should be configured to fail over between servers, and the list should be checked when replicas are added, moved or retired.

First server's renewal and CRL role

By default, the first server installed in a topology handles certificate renewal and CRL publication. If that server is retired, rebuilt or restored from an old backup, these duties can stall without an obvious error. Confirm which server holds the role before any planned change, and document how it moves to another replica. Restoring an outdated backup into an active replica topology can also break replication, so that step needs a tested runbook.

Backup and restore guide

How replicas, CA, DNS and clients fit across two datacenters

This illustrative topology starts with clients in each datacenter, which resolve names through at least two DNS servers in their resolv.conf. Each site holds two or three FreeIPA replicas, and replicas in each site run the CA and DNS services. Replication agreements link the replicas within and across sites, and the first server is marked because it handles certificate renewal and CRL publication by default. When you review the design, check that each replica stays within the recommended number of replication agreements, that every site has a PKI or DNS replica, and that you know where the first server sits before you plan a restore.

Illustrative two-site layout; replica roles and agreements will differ in your environment.

Which replica, CA and DNS layout fits your datacenters

This table compares the main layout decisions for a FreeIPA high availability design: replica count, replication agreements, CA and DNS placement, external resolvers and the first server. Read each row as a decision with its trade-off, then confirm the values against your own sites and change windows before you commit.

DecisionRecommended optionTrade-off and operational costWhen to choose it or confirm
Replicas per datacenterAt least two to three replicas in each datacenterEach extra replica adds a server to patch, monitor and back up, and it adds replication to check after every change.Choose two as the minimum per site. Confirm the count against your recovery targets and the staff available to run each server.
Replication agreements per replicaNo more than four agreements per replicaDense meshes spread changes faster but add replication traffic and more links to troubleshoot during an outage.Plan the topology so each replica keeps four or fewer agreements. Confirm the layout with your replication tooling before go-live.
CA on every site's replicasRun the Dogtag CA on at least one replica per datacenter where PKI is usedEvery CA replica adds renewal, CRL and key handling work. Fewer CA replicas reduce that work but concentrate certificate risk.Choose this when certificates must issue locally in each site. Confirm which sites need local issuance and who manages CA backups.
DNS on every site's replicasRun IdM DNS on at least one replica per datacenter where DNS is usedLocal DNS keeps lookups working during a WAN fault but adds zone administration on more servers.Choose this when sites must resolve Kerberos and host records without the WAN. Confirm zone ownership before enabling DNS.
Using an external resolver onlyDNS is optional when an external resolver is usedSkipping IdM DNS removes zone work, but clients then depend on records managed outside FreeIPA.Choose this when your DNS team already maintains the service and host records. Confirm that SRV and host records stay accurate.
Client resolver configurationAt least two DNS servers in each client's resolv.confA second server gives failover on the client side. Both entries must point to working servers in a reachable site.Set this on every enrolled client. Confirm the order of entries and test failover during your verification steps.
First server in the primary siteKeep the first server in the primary site and plan its replacementThe first server handles certificate renewal and CRL publication by default. Moving that role needs a planned procedure and an outage window.Choose this when the primary site is stable. Confirm the replacement path and who runs it before you rely on the first server.
Dedicated serversRun FreeIPA replicas without other applicationsShared hosts raise the risk of patch conflicts and make recovery planning harder.Choose this for production sites. Confirm that your platform team accepts the extra servers in each datacenter.

Build sequence for a highly available FreeIPA topology

This sequence takes a FreeIPA realm from design to a tested topology where replicas, CA, DNS and clients each survive the loss of one server, and where a restore has been rehearsed before go-live.

  1. Confirm realm, DNS and datacenter layout

    Before any server is built, fix the Kerberos realm name, the IPA DNS domain (which must not overlap with any Active Directory domain if a trust is planned), the datacenters, and which replicas will run the CA and DNS. Record the planned replica count per site, which should be at least two to three per datacenter according to the FreeIPA deployment recommendations. Ask the team that owns DNS to confirm delegation and reverse zones. This step closes when the design is written down and signed off by the people who own DNS, network and the CA policy.

  2. Deploy the first server on a dedicated host

    Install the first IPA server on a dedicated host that runs no other applications, as the deployment recommendations advise. This server initially holds the certificate renewal and CRL publication role, which the backup documentation notes it keeps by default, so plan its placement and its backups accordingly. Confirm the server resolves its own forward and reverse records and that the Kerberos and LDAP services start cleanly. This step closes when ipa server-show and a test kinit against the new realm both succeed on the first server.

  3. Add replicas one at a time per site

    Install each additional replica from an existing server, one at a time, and add CA and DNS to the replicas where the design calls for them. Start with a second and third replica in the primary datacenter, then repeat in each secondary site so every datacenter has at least one replica running PKI or DNS if those services are used. Do not start the next installation until the previous replica reports healthy. This step closes when ipa-replica-manage list shows every replica and ipa-csreplica-manage list shows the CA-enabled replicas.

  4. Define the replication agreement map

    Design the replication topology so that no replica has more than four replication agreements, the limit set in the FreeIPA deployment recommendations. Draw the map site by site, with each site fully connected within the limit and inter-site links kept to the minimum needed for convergence. Record the map in the runbook so later replica additions are checked against it. This step closes when ipa-replica-manage list on each server matches the drawn map and no server exceeds four agreements.

  5. Verify replication health across all replicas

    Confirm the topology is converging before adding clients. Run replication status checks from each replica, including ipa-replica-manage and the 389 Directory Server replication status, and look for failed updates or lagging suppliers. Create a test user on one replica and confirm it appears on every other replica within an acceptable window that your team sets. This step closes when the test user is visible everywhere and no replication errors remain in the directory server logs.

  6. Configure resolver lists with at least two DNS servers

    On every client, list at least two IPA DNS servers in resolv.conf (or the equivalent managed by your network configuration), with at least one in the client's own datacenter and one in another site. Keep these servers in the same order across clients in a site so failover behaves predictably. Ask the network team to confirm that the chosen DNS servers answer from each site, including SRV records used for service discovery. This step closes when a DNS query for the IPA domain and SRV records succeeds from a client in each site with one listed server switched off.

  7. Enroll clients with SSSD and test login per site

    Enroll a representative client in each datacenter with the IPA client install, which configures SSSD and Kerberos. Log in with a domain user from each site and check that a Kerberos ticket is issued from the local replica path, using klist to confirm the ticket. Repeat the test with the primary replica stopped to confirm clients keep authenticating. This step closes when a successful Kerberos login is recorded from each site and the failover test passes.

  8. Take a backup and rehearse a restore

    Take a full backup with ipa-backup on a healthy replica, store it off the server, and then rehearse a restore on an isolated test environment. The backup documentation warns that restoring an outdated backup into an active replica topology can break replication, so the rehearsal must use an isolated copy and follow the documented restore steps for your version. Compare the restored realm against the source for users, hosts, DNS and certificates. Repeat the backup on a schedule your team sets. This step closes when the restored test realm matches the source and the runbook records the exact restore procedure and its owner.

How the HA design changes by site count and environment

A single datacenter with two or three replicas is the simplest case. The core recommendation still applies: at least two to three replicas in the datacenter, dedicated servers that run nothing else, and no more than four replication agreements per replica. Because there is no second site, the topology is usually a small full mesh within the one location, and you keep the CA and DNS on more than one replica so that losing one server does not stop certificate issuance or name resolution.

  • Replica count: Two or three replicas is the target. Adding a fourth only helps if it does not push any replica past four agreements.
  • CA and DNS placement: Run the Dogtag CA and integrated DNS on at least two replicas, not only on the first server.
  • Client resolver settings: Confirm each client's resolv.conf lists at least two DNS servers.
  • Extra testing: Stop one replica at a time during a change window and confirm logins, host enrollment and certificate requests still work.
  • Power and network: A single site means a shared failure domain, so test what a site-wide outage does to clients that cache credentials.

Before go-live, confirm with your own team which failure scenarios you accept for a single site and document them.

What drives the effort of a FreeIPA HA rollout

This table lists the scope factors that change how much work a FreeIPA high availability rollout takes, and what to keep under control. Read each row as a question to answer in the written scope before work starts. The main takeaway is that replica count, DNS and CA scope, and restore testing drive most of the effort, so define them first.

DriverWhy it changes effortHow to keep it down and what to ask for in scope
Number of datacenters and replicasEach site needs two or three replicas, and every added replica adds build, enrollment testing and monitoring work. Replication agreements per replica are capped at four in the deployment recommendations.Limit replicas to the number each site needs. Ask for a written topology diagram with agreement counts per replica and the sites covered.
Number of clients and DNS resolutionEvery client needs enrollment and resolv.conf testing. The recommendations advise at least two DNS servers in each client's resolv.conf, so client configuration varies by site and OS.Group clients by OS and resolver pattern. Ask for the list of client classes, the resolver settings per class and the failover test plan.
Existing LDAP or AD integrationsExisting directories must stay consistent with FreeIPA during cutover, which adds mapping, sync and conflict checks. AD trusts also require non-overlapping DNS domains.Confirm which systems stay authoritative for which identities. Ask for a written list of integrations, the sync direction for each and the consistency checks to run.
CA and DNS scopePKI and DNS, if used, must run on at least one replica per datacenter. Each service on more replicas adds configuration, renewal and failover testing.Decide which replicas run CA and DNS before build. Ask for the service placement table and the owner of certificate renewal on the first server.
Dedicated hostsThe recommendations call for dedicated servers without other applications, so shared hosts may need new virtual machines or hardware, plus hardening.Inventory existing hosts first. Ask whether the scope covers provisioning new hosts, who supplies them and who patches them after go-live.
Restore rehearsalsBackup documentation warns that restoring an outdated backup into an active topology can break replication, so each rehearsal needs a clean test topology and time to verify results.Set the number of restore rehearsals and the environment they run in. Ask for the written restore runbook and a record of each rehearsal's outcome.
Compliance evidence requested by auditorsAssessors may ask for records of backups, certificate operations, access policy and change history. Each request adds collection and documentation work.Agree the evidence list before build. DeployOpen prepares systems, controls and evidence, but independent auditors issue any assessment result. Ask for the evidence list in the written scope.

What to monitor, back up and document after go-live

A replicated FreeIPA topology stays healthy only if someone checks it on a schedule. The cards below cover the checks, backups, upgrades and runbook entries that keep replicas, DNS, the CA and recovery working after go-live, with a named owner for each.

Replication health and agreements

Check replication status on every replica, not just the one you log in to. Confirm each replica has no more than four replication agreements, that agreements are not failing, and that changes made on one server appear on its peers. Silent replication failures are the most common way a replica drifts out of date. The identity or platform team owns this check, and a failed agreement should page them the same day.

Max agreements per replica
4
Deployment recommendations

DNS answers and resolver reachability

From each site, query the IdM DNS servers and confirm they answer for the realm and for service records used by clients. Check that every client's resolv.conf lists at least two DNS servers and that those servers are reachable from that site. A DNS server that answers slowly or not at all can look like a Kerberos or login outage. The network or DNS team owns the per-site test, and the platform team owns the client resolver settings.

Certificate renewal and CRL publication

The first server in the topology handles certificate renewal and CRL publication by default. Confirm it is running, that its CA certificates are not close to expiry, and that CRLs are being published where clients and services expect them. If the first server is down for long enough, renewals stop without an obvious alert. The PKI owner should review this on a fixed schedule and document the expiry dates in the runbook.

Backup and restore docs

Regular ipa-backup runs

Schedule ipa-backup with either full backups or online data-only backups, and copy each archive to storage outside the FreeIPA hosts. Test restores on a separate system at a regular interval. The backup documentation warns that restoring an outdated backup into an active replica topology can break replication, so restores must follow the documented procedure, not an ad hoc copy. The backup owner must confirm archives are readable and that encryption keys are kept apart from the archives.

Backup and restore docs

Replica-by-replica upgrades

Upgrade one replica at a time, verify replication and DNS on it, then move to the next. Track security releases such as 4.13.4, which fixed two CVEs including LDAP access control flaws, and plan rollouts so the topology never has fewer working replicas than your per-site minimum. The platform team owns the upgrade calendar and must confirm the operating system lifecycle for each server before scheduling work.

4.13.4 release notes

Runbook of server roles

Record in one document which server is the first server, which hosts run CA and DNS, which replicas sit in each datacenter, where backups are stored and who holds the restore procedure. Update it after every replica change or role move. During an incident, this runbook tells responders which host to touch first and which hosts must not be restored from an old backup. The identity lead owns the document and reviews it at each upgrade window.

How to test that FreeIPA HA works and fails safely

Test the high availability design by breaking it on purpose, in a staging topology that mirrors production, before anyone relies on it. Start with the simplest case: stop one replica in one datacenter and confirm that logins, DNS lookups and certificate requests keep working from the other sites. Run each check from a client that is enrolled and whose resolv.conf lists at least two DNS servers, and record which replica answered. A successful test shows that clients use the surviving servers without manual changes, and that the CA and DNS services you placed on several replicas actually respond. Repeat the test for each replica that runs the CA or DNS, because a replica that only holds directory data proves less than one that also serves certificates.

Stopping the first server is a separate test because it is the replica that handles certificate renewal and CRL publication by default. Stop it and check which scheduled renewal and CRL tasks stop running, then confirm that other replicas do not silently take over that role. Write down the recovery steps before the test: how to find the replica that now holds the renewal role, how to move it, and how to restart the first server and confirm its tasks resume. Also verify the state of the certificate authority and CRL files your clients depend on, since a missed publication window can break trust checks even while logins still work. Ask your implementation partner or the upstream FreeIPA backup and restore documentation to confirm the current procedure for your release before you run it.

Restore tests must never target an active replica topology. The backup documentation warns that restoring an outdated backup into an active topology can break replication, so restore into an isolated test environment built from the same OS and FreeIPA versions as production. Take a backup, restore it into the test topology, then verify authentication, DNS, certificate issuance and replication agreements before you consider the backup usable. Include one drill that restores a backup older than your last change window to confirm that your team recognizes the stale state and does not attempt a live rollback. Record the restore time, the steps that needed judgment, and the checks that failed. Those records are what your team will use during a real incident, and they are what an auditor will ask to see.

Protecting the CA, backups and replica trust in an HA design

Replication keeps identity data available, but it also copies whatever goes wrong across every replica. The controls below decide who can change the topology, who can read or restore backups, and where CA material sits, so that high availability does not widen the attack surface.

Restrict who runs backup and restore

Treat ipa-backup and ipa-restore as administrative operations on the whole realm, not routine maintenance. Limit execution to a small named group of administrators on the replicas, and confirm who can reach the root shell on each host. A restore from an outdated backup into an active topology can break replication, so the people allowed to run it should also be the people who review the restore plan first.

Backup and restore docs

Store backup copies off the replicas

A backup stored only on the replica that produced it is lost with that host. Copy backups to a separate system with its own access controls, and enable access logging so every read, copy and deletion is traceable. Ask who can retrieve these copies and how quickly access can be revoked. Backups contain keys and credential material, so their storage deserves the same protection as the CA itself.

Dedicate replicas to FreeIPA

The deployment recommendations call for dedicated servers without other applications. Shared hosts add packages, users and services that widen the path to the directory, the CA keys and the Kerberos KDC. Confirm that no other workload, admin tooling or web service runs on any replica, and that the replica OS image is built and patched on the same cycle as the rest of the realm.

Protect CA material on CA-enabled replicas

Only some replicas need to run the certificate authority. Each CA-enabled replica holds signing material and handles renewal and CRL publication, and the first server takes that role by default. Confirm where the CA keys live, who can read the Dogtag data directory, and how a CA-enabled replica is retired without losing signing continuity. Keep the CA role on the fewest hosts that still meet your availability target.

Approve every new replica

Enrolling a replica adds a new server that receives the full directory, including credentials. Limit who can create replica installation files and who can join a host as a replica, and require a documented approval for each addition. Ask how replica agreements are reviewed, because the recommendation of no more than four replication agreements per replica only holds if the topology stays deliberate.

Patch replicas after security releases

A replica that lags behind the realm can be the weakest point in the topology. FreeIPA 4.13.4 fixed two CVEs, including LDAP access control flaws that could let unauthenticated clients obtain credentials, so every replica needs that release or later. Confirm a patch window for each replica, a rollout order that keeps a working replica online, and a check that all servers report the same version after the change.

4.13.4 release notes

Questions buyers ask about FreeIPA high availability

How many FreeIPA replicas does each datacenter need for high availability?

Plan for at least two to three replicas in each datacenter, according to the FreeIPA deployment recommendations. Two replicas remove a single point of failure, but a third gives you room to take one server down for upgrades or repair while still keeping redundancy. The count also drives replication design: the recommendations cap each replica at no more than four replication agreements, so a larger estate needs a deliberate topology rather than a full mesh. Confirm the count against your number of sites, your WAN links and how many clients each site authenticates. Ask any partner to show the replication diagram in the written scope before work starts.

Do CA and DNS have to run on every FreeIPA replica?

No. The deployment recommendations call for at least one replica per datacenter running the certificate authority or DNS, if you use them, not every replica. Running them on more than one replica still matters, because a single CA or DNS server becomes the failure point for certificate issuance and name resolution in that site. Clients should also list at least two DNS servers in their resolver configuration. Decide which replicas host CA and DNS during design, document the choice, and test that clients fail over when one of those servers goes offline.

What happens if the first FreeIPA server is lost?

The first server is the one that handles certificate renewal and CRL publication by default, according to the FreeIPA backup and restore documentation. If it fails, renewal and CRL publication stop until that role is moved to another server, so the design should name a fallback before go-live. Also, restoring an outdated backup into an active replica topology can break replication, so recovery steps must be written and rehearsed. Ask the team to show how the renewal role is reassigned, how CRLs keep publishing, and which backup is restored first.

How much effort do the design and testing take, and what drives it?

Effort depends mainly on the number of datacenters, the replica count per site, how many CA and DNS roles you run, the number of clients and services that depend on the realm, and how much failover testing you require. Each replica adds build, hardening and monitoring work, and each failure scenario adds test time, including server loss, network partition, renewal role handover and backup restore. Costs come from people time, and they recur when you add sites or upgrade. The reliable figure is in the written scope: ask for the phases, the test cases and the deliverables, then compare them against your environment. No duration figure is given here because none was supplied for this topic.

What does our team have to provide for a high availability FreeIPA build?

Expect to provide the servers and their operating systems, dedicated hosts without other applications as the deployment recommendations advise, network paths between sites, the DNS zones and delegation the realm needs, backup storage that the restore tests can reach, and named staff who approve changes and attend test windows. Also provide change windows for the restore rehearsal, since it can affect live authentication. Ask the partner to list each dependency in the written scope so that missing items are found before the build starts, not during testing.

Can our own team run a high availability FreeIPA design after go-live?

Often yes, if the team has Linux, DNS and Kerberos skills and time to practice recovery. Running it well means knowing the replica topology, which server holds the renewal role, how to rotate or repair certificates, how to upgrade one replica at a time, and how to restore from a backup without breaking replication. Those tasks recur, so the cost to keep them is staff time and drills, not a license fee, since FreeIPA is GPL-3.0-or-later software. If the team lacks this depth, ask for a written handover, runbooks and an option for ongoing support in the scope.

How DeployOpen scopes, builds and hands over FreeIPA HA

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, so the FreeIPA high availability design runs in your cloud accounts, data centers or air-gapped network. Engagements are fixed-scope, with the topology, replica counts, CA and DNS placement, and backup tests agreed in writing before work starts.

How we scope

  • Map datacenters, replica counts and which replicas will run the CA and DNS services
  • Check replication agreements per replica against the four-agreement guidance before drawing the topology
  • Agree in writing how the first server's renewal and CRL role will be handed to another replica and tested

How we build

  • Deploy two to three dedicated replicas per datacenter, with at least one per site running PKI or DNS where used
  • Configure client resolv.conf files with at least two DNS servers and test failover by stopping a replica
  • Run ipa-backup on a schedule, then restore into a lab copy to confirm the procedure works before go-live

How we hand over

  • Deliver topology diagrams, replication and DNS runbooks, and the documented first-server role transfer steps
  • Provide restore test records showing the backup type used, the target host and the verified services
  • Walk your operations team through failover drills and the warning against restoring outdated backups into live replicas

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after go-live
  • Plan replica-by-replica upgrades and review certificate renewal status and replication health on a schedule you agree
  • Retest after topology changes, such as adding a datacenter or replacing an older replica

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.