Migrating from OpenLDAP to FreeIPA

Teams move from OpenLDAP to FreeIPA for Kerberos, a bundled CA and host policy. Users and groups import through a documented path; application binds, client enrollment and sudo rules set the effort.

On this page

Is migrating from OpenLDAP to FreeIPA a data move or a redesign?

Users and groups have a documented import path, but they are the smallest part of this move. FreeIPA's migration how-to describes the ipa migrate-ds command for pulling users and groups from another LDAP server, and it excludes Kerberos attributes because FreeIPA generates its own. The heavier work sits elsewhere. Each application that binds to OpenLDAP with a service account needs a new bind DN, credential and search base. Each Linux host needs enrollment and SSSD configuration. Sudo and HBAC rules must be migrated by hand through LDIF, and the replica design has to be drawn again for FreeIPA's multi-master model. This is a platform change, so an LDIF export will leave much of the project undone.

The short answer on effort is that it scales with applications, hosts and policy, and user count is rarely the driver. Before asking for a quote, build an inventory of four things: every application and appliance that binds to OpenLDAP, every host that authenticates against it, every sudo and access rule kept outside the directory, and every certificate that is issued or renewed by hand today. Each item changes the migration plan and needs a named owner on your side. A small directory with a few bound applications is a different project from a large one with dozens of bind paths, even when both hold similar numbers of accounts. A written scope built from that inventory is what lets a fixed-scope quote hold.

The import tooling and the migration plan depend on the OpenLDAP version and schema in use. The current OpenLDAP releases are 2.7.1 and the long term support line 2.6.15, so confirm which one runs in production, then export the schema and any custom object classes before choosing a method. If the servers use back-sql or back-perl, which OpenLDAP 2.7 retired, the source data sits outside the directory and needs its own plan. Before cutover, take a fresh FreeIPA backup, because FreeIPA's backup guidance warns that restoring an outdated backup into an active replica topology can break replication. Keep the OpenLDAP source read-only until the new deployment passes full login and sudo tests on a sample of hosts.

Why teams leave OpenLDAP for FreeIPA, and when to stay put

A standalone LDAPv3 server gives you a directory and little else. Kerberos single sign-on, a certificate authority, DNS and host policy each have to be chosen, installed, integrated and run as separate systems. Teams often move when that stack has grown around the directory and the people running it spend more time maintaining glue than managing identity. FreeIPA About bundles 389 Directory Server, MIT Kerberos, the Dogtag CA, SSSD on clients and optional DNS and NTP into one suite.

  • Kerberos single sign-on: FreeIPA runs an MIT Kerberos KDC against the same directory, so Linux logins and Kerberized services draw on one identity store. On OpenLDAP, the KDC is a separate system you deploy and keep in step with the directory.
  • Certificates: The Dogtag certificate authority issues certificates for hosts and services as part of the install. With OpenLDAP, you select a CA product, integrate it and handle renewal yourself.
  • Host and sudo policy: FreeIPA manages host-based access control and sudo rules as central objects that SSSD clients enforce. On OpenLDAP, you design the schema and tooling for those rules.
  • Migration tooling: The ipa migrate-ds command moves users and groups from other LDAP servers, while sudo and HBAC rules need manual LDIF migration.
  • Optional services: ISC BIND DNS and NTP can be installed with FreeIPA, so DNS records for hosts and services sit alongside the identity data.

Check which of these pieces you already run well elsewhere, because a team that already operates a KDC and a CA may gain less from the bundle than a team that does not.

What maps cleanly when migrating from OpenLDAP to FreeIPA

This table maps each OpenLDAP capability in a typical deployment to its closest FreeIPA equivalent and flags what changes during migration. Read the first column as your current setup and the notes column as the work it creates. The main takeaway is that directory data has a documented migration path, while bind DNs, authentication, replication and OTP enrollment each need their own plan.

Source capabilityFreeIPA equivalentMigration notes
LDAPv3 users and groupsMigrated into FreeIPA with ipa migrate-dsKerberos attributes are excluded because FreeIPA regenerates them. Confirm the attribute list on a copy of your directory.
Application LDAP bindsBind DNs and search bases follow the FreeIPA directory layoutEvery application config changes. Inventory each bind DN and search base, then test logins against the new tree.
SASL and TLS certificate authenticationRedesigned around the Dogtag CA and the MIT Kerberos KDCDo not expect slapd SASL and TLS settings to carry over unchanged. Plan certificate issuance and renewal before cutover.
Single-provider and multi-provider replicationRebuilt as a FreeIPA multi-master topologyReplica count and replication agreements need design. Follow the deployment recommendations for replicas per datacenter and agreements per replica.
Hand-configured LDAP host loginReplaced by SSSD enrollment on each clientEnroll each host with SSSD and retire hand-edited login configuration only after testing each host type.
sudo and access rulesMigrated manually through LDIFipa migrate-ds does not carry these rules. Export them, rewrite them and test each rule on a non-production host.
back-sql and back-perl backendsNot carried over directlyOpenLDAP 2.7 retired both backends. Export their data before migration and review what each one held.
OTP tokensMoved by ipa-migrate only between FreeIPA deploymentsThe OpenLDAP source is not a FreeIPA deployment, so plan a separate token re-enrollment for each user before cutover.
Schema, overlays and access control listsConfirm the mapping on a copy of your directoryOverlays and ACLs often hold custom behavior. Test each one on a copy before scheduling any cutover.

How OpenLDAP's pieces map onto FreeIPA's integrated stack

The diagram starts on the left with the current estate, where slapd runs as a standalone LDAPv3 server that applications and client hosts bind to, and Kerberos, DNS and certificate services are built and run separately. The right side shows FreeIPA servers that combine 389 Directory Server, the MIT Kerberos KDC and the Dogtag CA, with optional DNS, and clients enrolled through SSSD. Users and groups can move directly with ipa migrate-ds, while data exported to LDIF is the route for sudo and HBAC rules, which need manual migration. Check that every sudo and HBAC rule has a FreeIPA equivalent before cutover.

Components on the left are built separately, while FreeIPA combines them on the right.

Which documented import paths move data from OpenLDAP to FreeIPA

Five documented paths touch an OpenLDAP to FreeIPA move, and each covers a different part of the data. Some move records, some export and map the source, and one protects the FreeIPA side during import and cutover. Read them together, because the gaps between them decide what you must migrate by hand.

Users and groups with ipa migrate-ds

The documented path for moving users and groups from another LDAP server into FreeIPA is the ipa migrate-ds command. It excludes Kerberos attributes that FreeIPA regenerates itself, so Kerberos keys and credential state will not arrive from OpenLDAP as they are. Map OpenLDAP user and group attributes to FreeIPA attributes before the run, and test the import against a copy of the directory. Confirm in the migration how-to how password-dependent logins behave after import, and plan that work into the cutover window.

Migration how-to

Sudo and HBAC rules by hand

The migration how-to says sudo and HBAC rules must be migrated manually through LDIF, so ipa migrate-ds will not carry them across. Export the rules from OpenLDAP, rewrite each one in FreeIPA's sudo and host-based access control terms, and load them into a test realm first. Check that each rule's hosts, host groups and users still match how your Linux estate is grouped, because a rule that is too broad or missing changes who can run which commands. Record every rule in the change log so reviewers can trace it.

OpenLDAP LDIF tools for inventory

OpenLDAP 2.7 includes LDIF tools and command line LDAP utilities, and these form the export side of the move. Use them to dump the directory, count entries by object type, and map every OpenLDAP attribute and objectClass to its FreeIPA counterpart before any import runs. Keep the exports read only and store them with the change record, since they become the baseline you compare against after cutover. Confirm which schemas your OpenLDAP instance loads, because custom schema is where mapping gaps are most likely to appear.

OpenLDAP 2.7 announcement

ipa-backup and ipa-restore safety net

FreeIPA provides ipa-backup and ipa-restore, with full backups or online data-only backups, and they form the rollback path on the FreeIPA side. Take a full backup before the import and another before cutover. The backup documentation warns that restoring an outdated backup into an active replica topology can break replication, so plan restores around a stopped or rebuilt topology. It also states that the first server handles certificate renewal and CRL publication by default, so confirm where that role sits before you change servers.

Backup and restore docs

ipa-migrate does not read OpenLDAP

The ipa-migrate tool moves users, groups, certificates, sudo and HBAC rules, hosts, services, DNS, OTP tokens and policies, but only between two FreeIPA deployments over LDAP. It does not apply to an OpenLDAP source, so an OpenLDAP move cannot be planned around it. No single documented tool covers the whole move, which means the project is a sequence of ipa migrate-ds, manual LDIF work for sudo and HBAC rules, and your own mapping for everything else. Confirm this boundary with the FreeIPA project before you write the statement of work.

FreeIPA to FreeIPA migration

What happens to passwords and Kerberos keys at cutover

Assume Kerberos state will be rebuilt during the move, not assumed to survive it. The documented ipa migrate-ds import moves users and groups from another LDAP server, but it excludes the Kerberos attributes that FreeIPA regenerates. Users and services therefore cannot be assumed to keep their existing Kerberos behavior. Password hashes in OpenLDAP and the Kerberos keys FreeIPA issues for each principal are separate credentials, so verify each one on a test deployment. Check in the FreeIPA migration how-to how password credentials and Kerberos keys are handled for each account type, and whether users must set a new password before they can log in.

Run a pilot copy before any production date. Build a FreeIPA test deployment, import a representative sample of accounts, and record for each one whether the user can log in with the existing password, whether a Kerberos ticket is issued, and whether a password change is forced. Service accounts deserve their own test, because applications that bind to LDAP with a stored password may fail once the bind DN or credential changes. Confirm how the import treats those bind passwords, and whether each service account arrives usable or must be re-created and reconfigured. Keep the pilot results with your change records so the production plan rests on observed behavior.

Plan the ordered cutover as a sequence of changes, because every application and host that authenticates has to change its bind or enrollment in that order. Hosts typically move to SSSD enrollment against FreeIPA, while applications that use simple binds need a new bind DN, credential and search base. Start with low-risk hosts and the services with the fewest dependencies, and keep the OpenLDAP server available for rollback until every consumer has been moved and tested. OTP enrollment needs its own decision. FreeIPA supports HOTP and TOTP tokens, including software and hardware tokens such as YubiKeys, and can proxy OTP checks to an existing RADIUS server. Decide whether users re-enroll in FreeIPA, whether a RADIUS proxy bridges the transition, or whether tokens move with the accounts, and confirm which option your accounts support before cutover.

Sequence for a parallel run and cutover from OpenLDAP to FreeIPA

This sequence moves identity from OpenLDAP to FreeIPA in five gated steps, so that one system is the write authority at any time and the other can be checked against it. Each gate closes on criteria set in the written scope, and the sequence produces a tested fallback before any production client moves.

  1. Inventory the OpenLDAP estate

    DeployOpen and your directory, application and security owners list every consumer of the OpenLDAP directory: the server version and schema, overlays and access control lists, bind DNs, client hosts, sudo entries, application dependencies and any use of one-time passwords. Each item is marked as moving directly, needing a rewrite or staying outside FreeIPA. The step is done when the owners of each application and host group have reviewed their rows and signed off the inventory in writing.

  2. Build and test a FreeIPA pilot

    Build a FreeIPA lab that follows the FreeIPA deployment recommendations, then import a copy of the OpenLDAP data with ipa migrate-ds. That command moves users and groups but leaves out Kerberos attributes, which FreeIPA regenerates, so the team rewrites sudo and HBAC rules by hand through LDIF. Confirm the migration path for your release in the FreeIPA migration how-to. The step is done when test clients log in, sudo and HBAC decisions match the inventory, and every difference has a named owner.

  3. Run both directories in parallel

    Run both directories side by side with one write authority at a time. Choose the system that accepts writes for each user population, then re-point a selected set of applications and hosts to FreeIPA while the rest stay on OpenLDAP. Check access decisions and logins against both systems using the same test accounts, on the schedule set in the written scope. The step is done when results match the agreed criteria and the team has rehearsed moving the pilot hosts back to OpenLDAP.

  4. Cut over remaining clients and applications

    Move the remaining clients and applications in the written order, and transfer write authority to FreeIPA once the order reaches the last group. Before the first move, take an ipa-backup and restore it into a test environment, because FreeIPA's backup documentation warns that restoring an outdated backup into an active replica topology can break replication. Watch certificate renewal and CRL publication on the first FreeIPA server, which handles both by default. The step is done when every inventoried consumer authenticates against FreeIPA and OpenLDAP receives no writes.

  5. Retire OpenLDAP after the rollback window

    Retire OpenLDAP only after the rollback window closes, and keep it available for rollback until then. Confirm with your compliance and records owners which final export or copy of the OpenLDAP data must be retained as evidence. Then remove OpenLDAP from clients and services and update the inventory to show what replaced each component. The step is done when the agreed rollback criteria have been met, the owners have signed off, and the decommission record is filed.

What drives the effort of migrating from OpenLDAP to FreeIPA

This table lists the eight drivers that change how much work an OpenLDAP to FreeIPA move takes, what raises and lowers each one, and what to request in a quote. Cost is the staff time and partner fees set by the written scope, so use the last column as a checklist. Ask for the pilot, the rule rewrite, the application changes and the cutover support as separate items.

DriverWhat raises effortWhat lowers itWhat to ask for in a quote
LDAP-bind applicationsEach app with its own schema, filters, service account or TLS setup needs testing and possibly code or config changes.A short inventory, standard bind methods, and apps that accept configurable attribute mappings.Separate line item per application for config changes, test cases and sign-off.
Client hosts using LDAP loginMany hosts with hand-edited nss, PAM or SSSD settings each need enrollment, testing and a rollback path.Configuration management already in place, and hosts grouped into waves that move together.Cutover support for each host group, with the rollback steps and the hosts in each wave listed.
Sudo and HBAC rulesSudo and HBAC rules need manual migration through LDIF, so rule volume and tangled logic add review time.Few rules, rules that group cleanly by host and user, and a named owner who signs off on each rule.Rule rewrite as its own item, with the number of rules in scope and the review method.
Kerberos single sign-on as a new requirementIf Kerberos single sign-on is new, the project also adds KDC setup, service keytabs and client ticket testing.Kerberos already running in the estate, or an agreed SSO target with a short list of services.Kerberos and SSO integration as a separate item, listing each service that needs ticket-based login.
Certificate authority setupEach CA option changes who issues certificates, how renewals run and where CA replicas sit. Confirm whether the choice can be changed after installation.A decided CA model before the pilot, and a clear owner for renewal and CRL publication.CA design and certificate issuance as a separate item, with the chosen model written into the scope.
Replica count per datacenterReplica topology has to respect the per-replica agreement limit in FreeIPA's deployment guidance, which adds design and test work for each site.Few datacenters, a topology drawn up before install, and dedicated servers for the directory.Topology design and replica builds listed per datacenter, plus a restore test for the backup plan.
OTP and RADIUS useExisting OTP tokens and RADIUS-backed second factors need a mapping and a test plan before cutover.Few token types, and an existing RADIUS server that FreeIPA can proxy OTP checks to, if you keep one.Token and second-factor migration as a separate item, with each token type and how it moves.
Team skills in Linux, LDAP, Kerberos and DNSGaps in any of these four areas mean more partner or training time during design, pilot and cutover.Staff who already run Linux identity, LDAP schema work, Kerberos and DNS, with a named owner for each.Knowledge transfer and handover as a separate item, naming the staff who will run the platform.

What usually goes wrong when moving from OpenLDAP to FreeIPA

Most problems in an OpenLDAP to FreeIPA move come from assumptions carried over from the old directory: that the data is current, that the replica layout is flat, that every application binds the same way and that access rules translate directly. Each card names one failure point and the check that catches it before cutover.

Stale or partial data in a live topology

Teams often take an stale or partial export days before cutover, or run an import that stops partway, then load it while OpenLDAP still changes. The result is missing, outdated or duplicated accounts. Restoring an old backup into a live replica topology carries the same risk, and the FreeIPA backup documentation says it can break replication. Freeze writes on the source, compare object counts by type, and confirm the restore target before any import.

Backup and restore docs

More replicas than recommended

Migration plans often add replicas and replication agreements to copy the old OpenLDAP layout, then discover the topology exceeds FreeIPA's deployment recommendations. Those recommendations advise at least two to three replicas in each datacenter and no more than four replication agreements per replica. Count agreements per server before cutover, and check that dedicated servers run no other applications. If PKI or DNS is used, confirm at least one replica per datacenter runs it.

Deployment recommendations

Certificate renewal and CRL ownership

By default, the first server in a FreeIPA topology handles certificate renewal and CRL publication. Teams coming from OpenLDAP may not have planned for that role, since certificate duties in the old setup may sit with a separate PKI group or a load balancer. If that server is retired, patched late or left unmonitored during the move, renewals and CRL updates can stop unnoticed. Assign one named owner, list the certificates it renews, and test a CRL fetch from each client subnet.

Applications with LDAP-specific behavior

Applications bound to OpenLDAP can depend on attribute names, schema details, search bases, referral behavior or how they handle TLS and bind accounts. Those details can change once the directory is FreeIPA. Give each application its own bind test before cutover: a successful bind, a group lookup, a password change and a failed login. Record each application's bind account, search filter and certificate trust, and retest after every FreeIPA upgrade. Ask each vendor which schema and attributes it expects.

Sudo and HBAC rules after rewrite

Users and groups can move with ipa migrate-ds, but sudo and HBAC rules need manual migration through LDIF. Once rewritten, these rules can behave differently from the OpenLDAP-backed entries they replace, especially where host groups or command lists were loosely defined. Build an access matrix with each user group, host, command and login method, and mark the expected result for both allowed and denied cases. Run the matrix on FreeIPA before cutover.

Migration how-to

Deploying an unpatched target release

The FreeIPA version chosen at the start of a migration can fall behind by cutover. FreeIPA 4.13.4, a stabilization release dated July 9, 2026, fixed two CVEs, including LDAP access control flaws that could let unauthenticated clients obtain credentials. Read the release notes for the exact version you plan to deploy, confirm your packaging includes those fixes, and recheck the target before cutover. Ask your distribution's packaging team for the build date of the package you will install.

4.13.4 release notes

Questions buyers ask before migrating from OpenLDAP to FreeIPA

How much does an OpenLDAP to FreeIPA migration cost, and who gets paid?

Neither product charges a license fee, so the spend is staff time, a partner engagement if you hire one, test infrastructure and any support subscription. Planning, schema mapping, migration scripts, cutover and documentation are mostly one-time costs, while running replicas, patching, backups and any support subscription recur for as long as you operate the service. Cost rises with the number of applications that bind to the directory, the amount of custom schema and policy, and how many hosts enroll, so ask for a quote that lists each deliverable, who performs it and which items are one-time. DeployOpen does not publish a price list; a quote follows from the written scope, which should also state whether application changes and retesting are included.

How long does an OpenLDAP to FreeIPA migration take?

Duration depends on the drivers below, so ask for a milestone plan with dated checkpoints, and treat any single figure as provisional until the inventory is complete. The main drivers are the number of applications that bind to OpenLDAP and how each authenticates, the custom schema and access rules to map, the number of hosts that enroll as clients, and the certificates and DNS zones that change. A useful plan covers discovery and inventory, a pilot replica, data and policy migration in a test copy, a parallel run per application group, cutover and decommissioning, with an owner and an exit test for each milestone. Ask the implementation partner to state the assumptions behind each milestone, including change-freeze windows and approval cycles, so you can see what moves the schedule.

Who on our team must own the migration work?

Name one accountable owner each for applications, hosts, certificates and DNS before the engagement starts, and give each owner the authority to approve changes in their area. The application owner keeps the inventory of every service bound to OpenLDAP, its bind method and lookups, and who signs off test results. The host owner tracks enrolled Linux machines, their sudo and access rules, and the servers for replicas, and FreeIPA's deployment recommendations suggest two to three replicas in each datacenter. The certificate owner decides how the FreeIPA certificate authority is set up and who approves renewals, and the DNS owner confirms that each client lists at least two DNS servers in resolv.conf.

Can our own team migrate OpenLDAP to FreeIPA alone?

Often yes, if engineers already run LDAP, Kerberos, DNS and certificate lifecycles in production and have time for a full parallel run. The skills to confirm are LDAP schema and access control, Kerberos and DNS fundamentals, PKI operations, SSSD on Linux clients and change control that accounts for replication. FreeIPA-specific risks need attention early: restoring an outdated backup with ipa-restore into an active replica topology can break replication, and the first server handles certificate renewal and CRL publication by default. A partner is most useful for the gaps, such as cutover, and the split of work should be written into the scope before the engagement starts.

Can OpenLDAP keep serving some applications during a parallel run?

It can, but only for each application you confirm works against both directories, so confirm this individually for every application before you plan cutover dates. Ask the application maintainer whether it supports a second LDAP directory, which base DN, attributes and group structure it expects, how it caches credentials, and whether it needs its own service account. Two directories holding the same identities need a defined source of truth for password changes and group membership, or they drift apart during the parallel run. The FreeIPA migration how-to covers users and groups through ipa migrate-ds, but sudo and HBAC rules need manual migration through LDIF, so applications that depend on those policies should be tested in both places.

What breaks when moving from OpenLDAP to FreeIPA?

The most common gaps are Kerberos, policy and custom schema, because FreeIPA excludes some Kerberos attributes during migration and regenerates them, so services that depend on existing keys need a re-keying plan. Sudo and HBAC rules are not carried over by user and group migration and need manual conversion through LDIF, so inventory every access rule that exists today. Custom overlays, hand-tuned access control lists and nonstandard schema extensions must be mapped to FreeIPA's 389 Directory Server model and tested, since FreeIPA manages the directory layout and much of its access model for you. Certificates issued by the FreeIPA authority need to be trusted by every client and application, so test trust chains with a copy of production data before cutover.

Is FreeIPA free to use, and what does vendor support cover?

FreeIPA is licensed under GPL-3.0-or-later and has no paid edition of its own, so the software itself carries no license fee. Vendor support is separate: Red Hat sells it as Identity Management on Red Hat Enterprise Linux, and the scope is tied to RHEL, so confirm with the vendor which versions, components, hosts and response terms the subscription covers. DeployOpen is not a Red Hat partner, so ask Red Hat directly about subscription scope, and ask your compliance team what evidence they need if they expect a vendor-backed build. Community FreeIPA is packaged in Fedora, Debian and CentOS, so a team can run it without a subscription, but then fixes and support depend on your own staff or a partner.

How DeployOpen scopes and runs an OpenLDAP to FreeIPA migration

DeployOpen plans, implements, integrates, hardens, backs up, documents and supports FreeIPA inside your own infrastructure, including the move off OpenLDAP. We start with a written scope that names which OpenLDAP data, clients and services are in the move, then build and test the target in your environment. Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we scope

  • Inventory every OpenLDAP consumer, including applications, sudo, SSH and PAM clients that bind to the directory today.
  • Agree in writing which users, groups, hosts, sudo rules and HBAC policies migrate, and which are rebuilt.
  • The written scope also records cutover approach, rollback conditions and deliverables before work begins.

How we build

  • Stand up two to three FreeIPA replicas per datacenter, in line with the FreeIPA deployment recommendations.
  • Map OpenLDAP schema attributes to FreeIPA objects, and test each mapping against your client configurations.
  • Migrate users and groups with ipa migrate-ds, then move sudo and HBAC rules by hand through LDIF.

How we hand over

  • Document the topology, replication agreements, certificate authority setup and backup schedule in your environment.
  • Run ipa-backup and a tested ipa-restore drill, and document the risk of restoring an outdated backup into a live replica topology.
  • Hand over runbooks and compliance evidence for your assessors, which DeployOpen prepares but independent auditors assess.

How we support

  • Track FreeIPA security fixes, such as the CVE fixes in 4.13.4, and plan upgrades around them.
  • Keep a tested rollback path until the written scope's exit conditions are met.
  • Ongoing support, upgrades and continuous testing are available as retainers after handover.

Sources and further reading

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.