Open-source directory services compared

FreeIPA, Samba AD and OpenLDAP are the main self-hosted directories, and each fits a different job: Linux identity with Kerberos, a Windows-style domain controller, or a plain LDAP store. This page shows which one fits your environment and what each one asks of your team.

On this page

Open-source directory services compared: which one fits your environment

If your team must run a self-hosted directory and the question is which open-source option fits, start with the estate you already operate. FreeIPA suits Linux and UNIX identity, where you want Kerberos single sign-on, integrated DNS and a built-in certificate authority in one product. Samba AD suits a mixed Windows estate that needs an Active Directory compatible domain controller on Linux. OpenLDAP suits an LDAPv3 store where the application team owns the schema and Kerberos and Windows integration are built separately. FreeIPA combines 389 Directory Server, an MIT Kerberos KDC and the Dogtag certificate authority, so its scope is wider than a plain directory. Samba AD uses the Heimdal Kerberos key distribution center by default, and the Samba wiki documents experimental MIT Kerberos support when built against the system library. OpenLDAP is a directory server and tools, not a complete identity stack.

Licensing is rarely the deciding factor here, but it shapes what you can do internally. FreeIPA is licensed under GPL-3.0-or-later and Samba is GPL-3.0, while OpenLDAP is distributed under the OpenLDAP Public License, which Evolveum's style of paid support does not apply to in the same way, so confirm your own redistribution and support terms with each project or its packagers. None of the three is a substitute for an Active Directory Domain Services plan if Windows Server domain controllers must stay in your environment. AD DS replicates directory data to every domain controller in a domain and provides the schema and global catalog that Windows clients and applications expect. If Windows domain controllers remain, a FreeIPA or OpenLDAP deployment alongside them needs a trust or federation design you must test, and a Samba AD domain must be planned as its own forest.

Before you choose, check three things: which Kerberos and DNS behavior your clients require, whether your auditors expect a specific directory product or only the controls it supports, and who will run replication and backups. FreeIPA's deployment recommendations call for at least two to three replicas in each datacenter and dedicated servers, and its backup documentation warns that restoring an outdated backup into an active topology can break replication. Samba's wiki advises a separate domain member for file serving when multiple domain controllers exist. Confirm current versions, support windows and package availability with each project and with your platform vendor before you commit.

Which directory fits which situation

When most hosts, users and services are Linux or UNIX, FreeIPA is the most direct fit. It combines the 389 Directory Server, an MIT Kerberos KDC for single sign-on, and a Dogtag certificate authority in one product, and SSSD on clients handles the login side. Kerberos and certificate management are part of the product, so you do not assemble them separately.

  • Integrated Kerberos: The MIT Kerberos KDC gives single sign-on across Linux hosts and services without a separate keytab system you maintain yourself.
  • Built-in certificates: The Dogtag CA issues host and service certificates, which matters if your security team wants one place to manage them.
  • Replication topology: Multi-master replication suits two or three replicas per datacenter, subject to the deployment recommendations on replica count and dedicated servers.
  • Optional DNS and NTP: ISC BIND DNS can run alongside the directory, which helps when you want identity and name resolution managed together.

The choice is wrong if your estate is mostly Windows clients that expect Group Policy, or if you need a Windows domain controller for vendor software. Confirm your client OS mix, the replica layout you will run, and whether your team can operate a Kerberos realm before committing.

Scenario fit at a glance

This table maps five common directory scenarios to the option that fits best, the reason, and what to confirm before committing. Read each row against your own estimate of Linux, Windows and application demand, since the best fit often depends on which client platforms and applications you must support.

ScenarioBest fitWhyWhat to confirm
Linux and UNIX identityFreeIPACombines 389 Directory Server, an MIT Kerberos KDC, Dogtag CA and SSSD on clients, so Linux hosts, users and certificates are managed in one place.Confirm that your Linux distributions and their SSSD versions match the FreeIPA client packages you plan to use.
Windows domain controller replacementSamba AD DC or Microsoft Active DirectorySamba can run as an AD-compatible domain controller and supports functional levels up to 2016, while Microsoft AD DS is the native option for Windows-centric estates.Confirm the functional level you need, the Samba release series you will run, and which Group Policy and Windows tooling your administrators depend on.
Cross-forest trust with ADFreeIPAFreeIPA can establish a cross-forest trust with an AD domain on Windows Server 2008 R2 or later so AD users reach Linux resources.Confirm the IPA DNS domain does not overlap any AD forest domain, and test trust behavior with your Windows Server version.
LDAP backend for applicationsOpenLDAPslapd is a standalone LDAPv3 server with MDB storage and single-provider or multi-provider replication, suited to applications that only need a directory bind and search.Confirm which schema and overlays your applications need, and whether they require Kerberos or an AD-style object model, which OpenLDAP does not provide.
Single-site versus multi-datacenter replicationFreeIPA for multi-site Linux identity, OpenLDAP for simple directory replicationFreeIPA recommends at least two to three replicas per datacenter and uses multi-master replication, while slapd offers multi-provider replication for environments where a single point of failure is not acceptable.Confirm the replication topology, the replication agreement limits in FreeIPA guidance, and your recovery procedure for restoring backups into an active topology.

Licensing and editions: what is free and what is not

FreeIPA is licensed under GPL-3.0-or-later and Samba under GPL-3.0, both copyleft licenses. In practice, that means if you modify and distribute either project, the terms of the GPL generally apply to what you distribute, which matters most for teams that ship changed builds to customers or embed these components in their own products. Running them unmodified inside your own infrastructure is a different situation from redistributing them, so have counsel confirm which applies to your deployment. OpenLDAP is distributed under the OpenLDAP Public License, which the project describes as a non-restrictive, free, open-source license. Do not assume it carries the same obligations as the GPL, and do not describe it as OSI-approved in internal documents unless your own review confirms that status.

FreeIPA has no paid edition of its own. The FreeIPA project is a community effort, and there is no vendor-backed commercial version to buy. Red Hat Enterprise Linux packages the same functionality as Identity Management, so for many enterprises the paid element is the operating system subscription, which includes support for that packaged form. Fedora, Debian and CentOS also package FreeIPA, but those distributions support their packages under their own terms. Samba and OpenLDAP follow a similar pattern: the software is free to use, and any paid support comes from a distributor, a consultancy or the project's own ecosystem, not from a license upgrade. Confirm with each provider exactly what a support contract covers, including patches for the release lines you run, the response commitments and whether it extends to custom integrations such as an Active Directory trust.

Before you sign anything, ask each vendor or distributor four questions in writing: which release lines receive security fixes and for how long, whether a support contract covers your specific packaging, whether redistribution rights differ from internal use, and whether any add-on you plan to use, such as a monitoring or backup integration, is under a separate license. Those answers determine the recurring cost far more than the license itself. Where a support term is not stated in a supplied source, treat it as unknown until the provider confirms it in a signed document.

Each directory in brief

These four options cover different jobs: a Linux-native identity suite, a Windows-compatible domain controller, a bare LDAP server, and the Microsoft reference point most teams are measuring against. Each card names the license, what it bundles, the current release line supplied for it, and the job it fits best.

FreeIPA

FreeIPA bundles 389 Directory Server for LDAP, MIT Kerberos for single sign-on, and the Dogtag certificate authority, with SSSD on clients and optional ISC BIND DNS and NTP. It is licensed under GPL-3.0-or-later and has no paid edition of its own. It suits Linux and UNIX estates that need Kerberos and certificates managed together. Check that your DNS domain does not overlap with any Active Directory forest you plan to trust, and budget for replica topology planning.

Samba AD

Samba runs as an Active Directory domain controller under GPL-3.0, using the Heimdal Kerberos key distribution center and the samba-tool command for administration. It is the option to weigh when Windows-style domain behavior matters but you want an open-source controller. Confirm the functional level you need, since support for the 2016 level arrived in Samba 4.20, and the wiki advises against running a multi-DC domain controller as a file server.

OpenLDAP

OpenLDAP is a directory server and toolset under the OpenLDAP Public License, a permissive open-source license. Its slapd server implements LDAPv3 with SASL and TLS authentication and uses the MDB backend, and it supports multi-provider replication. It does not include Kerberos, a certificate authority or Windows domain services, so it is a directory building block. Choose it when you need a plain LDAP store for applications and will supply the rest of the identity stack yourself.

Microsoft Active Directory

Active Directory Domain Services is a Windows Server role that stores directory objects, replicates them to every domain controller in a domain, and provides a schema and global catalog. It is the reference point for Windows-centric estates and for the directory most open-source options are built to interoperate with. It is a commercial product licensed through Microsoft, so confirm your licensing terms and lifecycle dates with Microsoft before comparing total cost.

Operating effort: replicas, backups and DNS

The ongoing work in a directory is mostly topology, backup discipline and name resolution, and the three options put that work in different places. FreeIPA's deployment recommendations call for two to three replicas in each datacenter, no more than four replication agreements per replica, dedicated servers that run no other applications, and at least one replica per datacenter running PKI or DNS if you use those services. Clients should also list at least two DNS servers in resolv.conf. Budget for these as standing design decisions, because the replica count and agreement layout are hard to change once clients and services depend on them.

Backups carry a specific trap. FreeIPA provides ipa-backup and ipa-restore, with full or online data-only backups, but its documentation warns that restoring an outdated backup into an active replica topology can break replication. Write a runbook that says which backup type you take, how often, where copies go, and how a restore is coordinated across replicas before anyone runs it. Confirm with the FreeIPA project which server handles certificate renewal and CRL publication in your layout, since the first server does so by default. Samba's operational risk is different. The Samba wiki advises against using an AD DC as a file server when multiple DCs exist and recommends a separate Samba domain member for file serving, so plan an extra server role and its patching from the start.

OpenLDAP's effort sits in different places. slapd gives you single-provider replication, multi-provider replication and a caching proxy, but the schema, replication design and the Kerberos and Windows integration are all built and maintained by your team. Ask whether your staff has the skills for schema governance and replication testing, and confirm which Kerberos and Windows bridging you will use, because neither is supplied as a finished identity service. Any outside implementation work is scoped and priced from a written statement of those tasks, not from a generic estimate.

How to choose and pilot a directory

This sequence turns a shortlist of FreeIPA, Samba AD and OpenLDAP into a tested decision, so the team knows which directory fits its clients, its Windows estate and its recovery needs before any production cutover. Each step ends with a written output the approvers can review.

  1. Inventory every client and application that authenticates

    Platform engineering and application owners list each system that binds to a directory or expects Kerberos, LDAP, DNS or RADIUS: Linux hosts, Windows workstations, SSH, sudo, VPN, web apps and service accounts. For each entry, record the protocol, the attributes it reads and whether it needs group-based authorization. The step is done when the inventory has an owner and a protocol for every entry and the team agrees the list is complete.

  2. Decide whether domain controllers are replaced or joined

    The identity lead and the Windows administrators decide whether existing Active Directory domain controllers stay in place and the new directory only serves Linux and UNIX clients, or whether the Windows estate moves to a Samba AD DC or is left alone. FreeIPA can establish a cross-forest trust with an AD domain, which is a joining option, while Samba can run as an AD-compatible domain controller, which is a replacement option. The output is a written decision record that names the trust or replacement path and the owner of each system.

  3. Test the Kerberos and DNS design in a lab

    The platform team builds a lab with the candidate directory, a test client set and, if a trust is planned, a test Active Directory domain. They confirm the Kerberos realm, DNS zones and time synchronization, and check that the IPA DNS domain does not overlap any AD forest domain. Where FreeIPA is the candidate, they also check the DNS-over-TLS and client resolver settings. The step closes when a set of test logins, service ticket requests and name lookups succeeds from every client type on the inventory.

  4. Run a migration test with the migration tools

    Where users and groups already live in another LDAP server, the directory team runs a migration test with ipa migrate-ds for FreeIPA, or an equivalent import for OpenLDAP or Samba. Kerberos attributes are regenerated rather than copied, so the team checks password resets and login paths after import. Sudo and HBAC rules need manual migration through LDIF, so the team converts and reviews those rules by hand. The output is a reconciliation report comparing source and target counts, groups and rule sets.

  5. Confirm the replication topology under failure

    The directory engineers build the planned replica layout and confirm that changes made on one server reach the others. FreeIPA's deployment recommendations call for at least two to three replicas in each datacenter and no more than four replication agreements per replica, so the team checks the topology against that guidance. They also take one replica offline and confirm that logins and writes still work on the others. The step is done when the failover test is recorded with the results and any gaps are assigned to an owner.

  6. Test backup and restore before cutover

    Operators run a full backup and a restore into a separate environment, then confirm that users, groups, Kerberos keys and certificates come back intact. FreeIPA's backup documentation warns that restoring an outdated backup into an active replica topology can break replication, so the restore test must use an isolated environment. The team also confirms which server handles certificate renewal and CRL publication. The output is a signed restore record that approvers review before any production change is scheduled.

  7. Approve cutover against written criteria

    The identity owner, security lead and affected application owners review the inventory, lab results, migration report, failover test and restore record against criteria agreed at the start. Any failed criterion is either fixed and retested or accepted as a documented risk by someone with authority to accept it. The step closes with a go or no-go decision and a rollback plan that names who runs it. Confirm any vendor support terms and subscription scope with the vendor or your own procurement team before this decision.

Questions buyers ask before choosing a directory

Can Samba AD fully replace Active Directory?

Samba can run as an Active Directory compatible domain controller, but whether it fully replaces your Active Directory depends on which features your environment uses. Samba supports the Windows Server 2008 R2 functional level since Samba 4.0, the 2012 and 2012 R2 levels since Samba 4.19, and the 2016 level since Samba 4.20. Check every Group Policy, trust, authentication and management tool your estate relies on against Samba's documentation before you commit. The Samba wiki also advises against using an AD DC as a file server when there are multiple DCs, so plan file serving on separate domain members.

What drives the cost and effort of each directory option?

Licensing is only part of the picture. FreeIPA, Samba and OpenLDAP are open source with no paid edition from their own projects, so most cost is staff time, infrastructure and support. Effort rises with the number of replicas, the number of sites, the amount of DNS and certificate work you add, and how much of your current Active Directory behavior you must match. Windows Server licensing and support are separate costs if you keep Active Directory in the mix. Ask any implementer for a written scope that lists replicas, sites, integrations, migration work and testing, since those items drive the quote.

How long does a directory pilot take, and what does it need from the team?

The duration depends on scope, and no supplied fact gives a pilot length, so confirm the timeline in writing before work starts. A useful pilot needs a test network, at least two directory servers for replication testing, a DNS plan, a clear list of client platforms, and someone who understands Kerberos and LDAP well enough to read logs. Include a test of backup and restore, because the FreeIPA backup documentation warns that restoring an outdated backup into an active replica topology can break replication. Plan for the pilot to run long enough to cover your real login, password change and application scenarios.

Can an internal team run a directory service alone?

Many internal teams can run a directory alone, but they need skills in Kerberos, LDAP, DNS, replication and certificate management, along with on-call coverage. FreeIPA's deployment recommendations advise at least two to three replicas in each datacenter and dedicated servers without other applications, which means more machines and more hands. Samba AD requires the same disciplines plus careful use of samba-tool and functional level changes. Assess whether your team has these skills today, who would cover an outage, and how upgrades will be tested before you decide.

When should an organization bring in an implementation partner for a directory?

Bring in a partner when the directory is business critical and your team lacks the time or specific skills for design, migration or hardening. DeployOpen plans, implements, integrates, hardens, backs up, upgrades and documents self-hosted open-source platforms inside the client's own infrastructure, and most engagements are fixed-scope with scope and deliverables agreed in writing before work starts. DeployOpen does not issue audit reports or certifications, so independent assessors still provide that evidence. Ask for a written scope that names the directory, the integrations and the handover documents.

How does FreeIPA handle trusts with Active Directory?

FreeIPA can establish a cross-forest trust with an Active Directory domain on Windows Server 2008 R2 or later, so AD users can reach Linux resources. The trust uses Samba components, and the IPA domain must use a DNS domain that does not overlap with any domain in the AD forest. Plan the DNS namespace before deployment, because changing it later is disruptive. Confirm the trust setup steps against the FreeIPA trust documentation and test authentication, group membership and access policies in a lab before you connect production forests.

When is OpenLDAP the wrong choice for a directory?

OpenLDAP is the wrong choice when you need a ready-made Kerberos realm, integrated certificate authority, or Active Directory compatibility out of the box. OpenLDAP 2.7 includes slapd, lloadd and command line tools, and slapd supports LDAPv3 with SASL and TLS, but it does not bundle the Kerberos, certificate and DNS services that FreeIPA integrates. Teams that need Windows domain behavior should evaluate Samba AD or Active Directory itself. OpenLDAP fits well when you need a flexible LDAP store for applications and you can build the surrounding services yourself.

The cost of switching directories later

Moving off a directory is rarely a data copy. The hardest parts are the ones that bind users, hosts and applications to the directory's identity model. If you plan to migrate from FreeIPA later, expect Kerberos principals to be regenerated during migration rather than carried over unchanged, so every service that authenticates with Kerberos needs its keytabs and service principals re-issued and tested. Ask the project or your integrator to document exactly which attributes the ipa migrate-ds path excludes and regenerates, and to confirm how sudo and HBAC rules are moved, since the FreeIPA migration how-to says those need manual migration through LDIF.

The schema and group model are the next constraint. Users, groups, host objects and nested group membership in one directory rarely map one to one into another, so attribute names, object classes and group nesting need a written mapping before any cutover. Client enrollment is also a cost: every Linux host enrolled through SSSD, every Windows member and every Samba or Active Directory trust relationship has its own state. Application bind configuration is often the most expensive item, because each LDAP-bound application stores its own base DN, bind account, search filter and certificate trust. Inventory these bindings now, and treat each one as a test case in the migration plan.

Treat a directory move as a project in its own right with its own cutover window, rollback path and acceptance tests, not as a side task of an upgrade. Before you commit, ask the vendor or project for the supported migration path between your current and target directories, the versions it covers, and the rollback procedure if replication breaks partway through. Confirm these in writing, and build the cost of the migration into the original platform decision, because the effort to leave a directory usually grows with the number of applications that depend on it.

How DeployOpen scopes directory selection and implementation

DeployOpen plans, implements, integrates, hardens, backs up, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including their cloud accounts, data centers or air-gapped networks. For directory services, that means starting from your identity sources, Kerberos and DNS requirements, and Active Directory coexistence needs before any directory is chosen or installed.

How we scope

  • We map which applications, clients and Linux or Windows hosts need to authenticate against the directory before naming a candidate.
  • Scope covers the replica topology, DNS design, Kerberos realm and any Active Directory trust, agreed in writing before work starts.
  • Engagements are fixed-scope, so deliverables and timelines are set in the written scope rather than during the work.

How we build

  • Installation runs inside your own networks, with replication, backup and client enrollment configured to the agreed design.
  • Integrations cover the directory's client support, group mappings and any identity federation with downstream platforms in scope.
  • Hardening follows the agreed baseline, and security testing of the directory and its exposed services can be included in scope.

How we hand over

  • Deliverables include architecture documentation, runbooks for replica management, backup and restore, and an operations checklist.
  • Compliance-relevant evidence, such as access control settings and configuration records, is prepared for your assessor, who issues any audit result.
  • Your staff are walked through restore and failover procedures so the team can operate the directory after handover.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Upgrade planning follows the vendor's release and support windows for the chosen directory, which we confirm during scoping.
  • Ask any provider, including DeployOpen, to define in writing who handles patching, incident response and directory recovery.

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.