Keycloak vs Authelia vs FreeIPA: which one fits your situation
Choose Keycloak when your applications need OpenID Connect or SAML, when logins must be brokered to an external identity provider, or when users come from an LDAP or Active Directory source you need to federate. Choose Authelia when the goal is two-factor login and single sign-on in front of web apps already served through a reverse proxy such as Traefik, Caddy or NGINX. Choose FreeIPA when the estate is mostly Linux and UNIX and you need Kerberos single sign-on, certificates, DNS and host policy managed from one place. These are different categories, so many organizations run one of them for each job. Keycloak and Authelia are both Apache-2.0 licensed, so license alone does not separate them, while FreeIPA is GPL-3.0-or-later and is a community project with no paid edition of its own.
Start by asking what each team must protect. If the applications are web apps you can place behind a reverse proxy, Authelia covers two-factor login and single sign-on, but its protocol support is narrow: its OpenID Connect documentation lists no SAML support, and it only works for sites served over HTTPS. If you need SAML service providers or brokered logins to outside identity providers, Keycloak is the closer fit, and you should plan for a supported production database such as PostgreSQL 14 to 18. If Linux hosts need Kerberos tickets, certificates and host access rules, FreeIPA is built for that, and it can establish a cross-forest trust with an Active Directory domain on Windows Server 2008 R2 or later. Before you shortlist, confirm with each platform's documentation which client types, MFA methods and replica counts your estate requires.
Which platform fits which team situation
This table matches common team situations to the platform that fits each one best. The Why column states the condition under which that fit holds and when the other option is the stronger choice. Read each row against your applications, your user source and whether Linux hosts need Kerberos or host policy, since those needs usually decide the choice.
| Scenario | Best fit | Why |
|---|---|---|
| Web apps behind NGINX, Traefik or Caddy that need 2FA and single sign-on | Authelia | Holds when apps are HTTPS sites behind a proxy and no SAML is needed. Keycloak fits if apps need native OIDC or SAML clients. |
| A SaaS product that must offer OIDC, SAML and logins brokered to customer identity providers | Keycloak | Holds when you host the identity service yourself and must offer SAML and brokered logins. Zitadel fits better if each customer manages its own organization. |
| A Linux estate that needs Kerberos, certificates and sudo or host-based policy | FreeIPA | Holds when Kerberos, certificates, sudo and host policy need central management. Keycloak and Authelia focus on app SSO and do not manage Linux host policy. |
| Active Directory users who must reach Linux resources | FreeIPA with a cross-forest AD trust | Holds when AD stays the user source and Linux hosts must accept AD accounts. Keycloak suits AD users for web apps, without Linux host login. |
| A small team with a few apps and a YAML or LDAP user source | Authelia | Holds for HTTPS apps needing 2FA with users in YAML or LDAP. Choose Keycloak once SAML or brokered logins are needed. |
How the architectures of Keycloak, Authelia and FreeIPA differ
Keycloak is a standalone identity server that runs as its own service with its own production database. That must be a relational database such as PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database or Amazon Aurora PostgreSQL, since the default dev-file database is for development only. Its admin console manages realms, clients and users. For high availability, Keycloak documents a single cluster that can span availability zones, a multi-cluster design without an external Infinispan cluster, and a deprecated multi-cluster design that uses a separate Infinispan cluster per site. Both supported designs need a synchronously replicated database. Users live in Keycloak's own store, or Keycloak can federate them from LDAP or Active Directory and broker logins to external OpenID Connect or SAML identity providers.
Authelia works alongside a reverse proxy. The proxy asks Authelia whether each request may proceed, and unauthenticated users are redirected to Authelia's login portal. Because its session cookies require it, Authelia only works for sites served over HTTPS, and the project declines to support plain HTTP, so TLS on the proxy must be in place before deployment. Confirm that your proxy is on the supported list, which includes Traefik, Caddy, Envoy and NGINX, with Apache and IIS listed separately. Users come from a YAML file with hashed passwords or from an LDAP directory such as OpenLDAP, OpenDJ, FreeIPA or Microsoft Active Directory, so the user backend is a day-one decision. Authelia's support chart lists no SAML, so applications that need SAML will need a different identity path.
FreeIPA is a bundle of components that work together: 389 Directory Server, MIT Kerberos, the Dogtag certificate system and SSSD on each client, with optional ISC BIND DNS and NTP. The 389 Directory Server holds users, groups, hosts and policies as a multi-master LDAPv3 directory. The MIT Kerberos KDC provides single sign-on, and Dogtag issues certificates. Because FreeIPA is itself the user directory, accounts are created inside it, or Active Directory users reach Linux resources through a cross-forest trust. Plan the topology before installation: the deployment recommendations advise at least two to three replicas in each datacenter, and at least one replica running PKI or DNS if you use them. The first server also handles certificate renewal and CRL publication by default, so your backup and restore runbook must account for it.
Keycloak vs Authelia vs FreeIPA side by side on protocols, directories and recovery
This table compares the three platforms on licensing, protocols, user sources, databases, second factors, high availability, Kubernetes and backup. Where a cell says to confirm, the point is not established here, so check it with the project before you plan. The main takeaway is that Keycloak is the broadest SSO server, Authelia is a companion for reverse proxies, and FreeIPA is a Linux identity suite with a documented trust to Active Directory.
| Capability | Keycloak | Authelia | FreeIPA |
|---|---|---|---|
| License and current release | Apache-2.0. Current release 26.8.1, published October 13, 2026. | Apache-2.0. Current release v4.39.28, released September 17, 2026. | GPL-3.0-or-later. Newest tag release-4-13-4 (4.13.4 dated July 9, 2026). |
| Protocols | OpenID Connect, OAuth 2.0 and SAML 2.0, plus brokering to external OIDC or SAML providers. | OpenID Connect with OpenID Certified Basic, Implicit, Hybrid, Form Post and Config OP profiles. No SAML support listed. | Kerberos single sign-on and LDAPv3. Confirm OIDC or SAML support with the FreeIPA project. |
| Primary role | Full identity and access management server with SSO, brokering, federation and an admin console. | Two-factor and SSO companion for reverse proxies, which ask it whether to allow each request. | Linux and UNIX identity suite: LDAP directory, Kerberos, Dogtag certificate authority and optional DNS. |
| User source and Active Directory | Own users, plus LDAP or Active Directory federation and external OIDC or SAML brokering. | LDAP (OpenLDAP, OpenDJ, FreeIPA or Active Directory) or a YAML file of users with hashed passwords. | Its own 389 Directory Server; cross-forest trust with AD on Windows Server 2008 R2 or later. |
| Production database | PostgreSQL 14 to 18, MariaDB, MySQL, SQL Server, Oracle, Aurora PostgreSQL. The dev-file database is not for production. | Confirm the supported production storage backend with the Authelia project before sizing. | Directory data lives in 389 Directory Server. Confirm storage layout and sizing with the FreeIPA project. |
| Second factors | Confirm OTP, WebAuthn and passkey options for your version in the Keycloak server administration guide. | One-time passwords, security keys, passkeys and Duo mobile push. | HOTP and TOTP tokens, including software tokens and hardware tokens such as YubiKeys; RADIUS proxy for OTP. |
| High availability documentation | Three documented designs; both supported ones need a synchronously replicated database. Multi-cluster v1 is deprecated. | Confirm whether Authelia supports clustered or highly available deployments with the project. | Recommends at least two to three replicas per datacenter and no more than four replication agreements per replica. |
| Kubernetes installation | Keycloak Operator through Operator Lifecycle Manager (recommended) or kubectl, with custom resources for imports and clients. | Confirm Kubernetes deployment options and supported manifests with the Authelia project. | Confirm container or Kubernetes support with the FreeIPA project; it is packaged for Linux distributions. |
| Backup tooling | Confirm the backup procedure with the Keycloak project and your chosen database vendor. | Confirm the backup approach for its storage and configuration with the Authelia project. | ipa-backup and ipa-restore, full or online data-only. Restoring an old backup into a live replica topology can break replication. |
Licensing and editions across Keycloak, Authelia and FreeIPA
Keycloak is licensed under Apache-2.0, so self-hosting the software carries no license fee. The current release is 26.8.1, published October 13, 2026. The materials behind this page do not show a separately licensed Keycloak edition. The commercial route is the Red Hat build of Keycloak, Red Hat's supported distribution of the open source project, which replaced Red Hat Single Sign-On.
- License cost: Apache-2.0 removes the license fee for self-hosting. Recurring costs are infrastructure, the production database and the staff who operate and upgrade the platform.
- Upgrade cadence: Since Keycloak 26.0, the project plans four minor releases a year, so budget for frequent upgrade work whichever build you run.
- Red Hat build: The Red Hat build of Keycloak is carried by a Red Hat subscription. It suits buyers whose procurement or audit process requires a vendor support contract.
- Version gap: Red Hat's product page showed 26.6 as its latest version, behind the upstream 26.8.1 release. Ask which build line and patch level the subscription delivers.
Confirm with Red Hat which build lines the subscription covers, the support end date for each line, and whether security fixes reach you between minor releases. Ask whether any other commercial Keycloak offering exists before you purchase.
Authelia is licensed under Apache-2.0, and the current release is v4.39.28, published September 17, 2026. The materials behind this page do not show a paid Authelia edition or a vendor distribution with a support subscription, so this tab does not name either. Authelia works as a companion to reverse proxies, so its licensing question is mostly about who supports the deployment once it is in production.
- License cost: Apache-2.0 means no license fee for self-hosting. Cost comes from the time to integrate the proxy, set up the user backend and configure second factors.
- Release tracking: v4.39.28 is the current line. Follow the Authelia releases page for patches, since release cadence drives your upgrade work.
- Paid edition: None appears in the materials for this page. Do not assume a commercial option exists until the maintainers or a reseller confirm it in writing.
- Support model: No vendor distribution is named for Authelia here. Support would come from a contract with a vendor or services firm, so get its scope in writing. DeployOpen offers ongoing support and upgrades as retainers, which is a services contract and not a vendor subscription.
Before you buy, ask the Authelia maintainers or a services provider which versions they support, how long each line receives security fixes, and what response they commit to in writing.
FreeIPA is licensed under GPL-3.0-or-later and is a community project with no paid edition of its own. The newest tag in its GitHub repository is release-4-13-4. The 4.13.4 stabilization release, dated July 9, 2026, fixed two CVEs, including LDAP access control flaws. Vendor support comes through Red Hat Identity Management on RHEL, which Red Hat packages as part of Red Hat Enterprise Linux.
- License cost: GPL-3.0-or-later carries no license fee for installing the software. Ask counsel how the GPL terms apply if you modify the code and distribute it outside your organization.
- Community route: The project is packaged in Fedora, Debian, CentOS and RHEL. Support comes from community channels and your own staff.
- Current patch line: Review 4.13.4 early, because it includes security fixes that affect LDAP access control and authentication checks.
- Red Hat Identity Management: It runs on RHEL under a Red Hat subscription. Confirm whether Identity Management is bundled with the RHEL subscription or sold separately, and which operating systems it covers.
Confirm with Red Hat the Identity Management version line, the lifecycle dates for the RHEL release you plan to run, and whether the subscription covers the certificate authority and replication components you intend to use.
How a login travels through each platform
In the first path, a browser request reaches a reverse proxy, which asks Authelia on every request and redirects unauthenticated users to the Authelia login portal. Authelia checks credentials against LDAP or a YAML file. In the second, an application redirects to Keycloak over OpenID Connect or SAML, and Keycloak brokers the login to an external identity provider or federates users from LDAP or Active Directory. In the third, a Linux host running SSSD obtains a Kerberos ticket from the FreeIPA KDC, and a cross-forest trust lets AD users reach those hosts. Confirm which user store each path reads before you choose.
Three login paths: proxy forward auth, Keycloak brokering and SSSD Kerberos.
What drives the running cost of each platform
License fees are only one line in the bill for these three platforms. Most of the running cost comes from the database and server tier each one needs, the integration work, the support you choose and the people who answer when a service fails.
Keycloak database and clustering
Keycloak needs a relational database in production, and its default dev-file database is for development only. Your organization pays for the database engine, any license that engine requires, and the staff who back it up and patch it, and these costs recur for as long as the service runs. Both supported high availability designs need a synchronously replicated database, so size that tier before you size the Keycloak nodes. Ask your DBA team and your Keycloak provider to confirm which engine and replication setup your design requires.
Keycloak database guideAuthelia proxy integration and user backend
Authelia works as a companion to a reverse proxy such as Traefik, NGINX or Caddy, and it only serves sites over HTTPS. The setup work is proxy configuration, access rules and choosing a user backend, such as an LDAP directory or a YAML file of users. Your team pays for that integration once, then keeps paying for each new protected site added behind the login gate. Ask who owns the directory bind account and who reviews access rules after go live.
Authelia architectureFreeIPA replica count and backups
The FreeIPA deployment recommendations advise at least two to three replicas in each datacenter, so server count grows with every site you add. Each replica is hardware or cloud capacity you provision, patch and monitor, which makes it a recurring cost. Backups add a second routine: ipa-backup offers full or online data-only backups, and the first server handles certificate renewal and CRL publication by default. Ask who runs those tasks and how often a restore into a test replica is rehearsed.
Support subscriptions and distributions
FreeIPA is GPL-3.0-or-later community software with no paid edition of its own, and it is packaged in Red Hat Enterprise Linux as Identity Management. A support subscription for that distribution is a recurring cost tied to RHEL, while Keycloak has a supported build from Red Hat, the Red Hat build of Keycloak. Confirm with the Authelia project or your provider whether any paid or upstream support is available. Ask each vendor what the subscription covers, which versions it supports and how long each version stays in support.
Red Hat Keycloak pageStaff skills and on-call coverage
Keycloak, Authelia and FreeIPA each need an operator who understands its failure modes. Keycloak asks for database and clustering skills, Authelia asks for proxy and directory skills, and FreeIPA asks for Kerberos, LDAP and certificate skills. Salaries, training and on-call coverage are recurring costs, and the risk grows if only one person can restore the service. Ask your team to name at least two people per platform who can run a restore and a certificate renewal.
The cost of switching later
Each platform carries a different exit cost. Moving off Keycloak or FreeIPA means re-creating clients, policies, users and certificates in another system, and FreeIPA's Kerberos domain and certificate authority need the most planning. Authelia sits in front of each protected route, so leaving it means reworking every proxy rule and user backend binding. Ask the implementer to quote the migration path, the rollback plan and the parallel running period before you commit.
Keycloak vs Authelia vs FreeIPA implementation effort
Keycloak takes the most setup effort, and most of it lands before the first realm exists. Choose a supported production database from the list in the database guide (PostgreSQL 14 to 18 is one option) and provision it with tested backups. The default dev-file database is for development only. Plan HTTPS for the public hostname and for cluster traffic, then pick a high availability design. Both supported designs need a synchronously replicated database, so confirm that with your DBA before sizing the cluster. For deployment, Keycloak recommends installing the Operator through Operator Lifecycle Manager, with kubectl as the alternative. Your platform team owns the cluster and database. Realms, clients and federation to LDAP or Active Directory take the longest after the platform is running, so ask for them as separate, named deliverables in the written scope, with a list of the applications each client covers and who signs off on each one.
Authelia has the smallest install, but its effort sits in the reverse proxy and the user backend. Serve every protected site over HTTPS, because Authelia's session cookies require it and the project does not support plain HTTP. Then configure the proxy so it asks Authelia to allow each request. Supported proxies include Traefik, Caddy, Envoy and NGINX, with Apache and IIS listed separately. Each proxy has its own configuration, so test every protected route, including health checks and API paths. Choose the first-factor backend early: Authelia can read users from LDAP directories such as FreeIPA, Active Directory or OpenLDAP, or from a YAML file, and that choice decides who manages passwords and group membership. Then choose second factors from one-time passwords, security keys, passkeys and Duo push, and confirm which ones your users can enroll on their own. The support chart lists no SAML, so confirm early whether any SAML-only application needs a different path.
Questions buyers ask before choosing or hiring help
How much operating effort does each identity platform need?
Authelia usually needs the least ongoing effort, Keycloak sits in the middle, and FreeIPA needs the most when you run it as a full Linux identity stack. The effort depends on what you put behind each one. Authelia is a companion to your reverse proxy, so the work is mostly proxy rules, HTTPS and the user backend it reads from. Keycloak needs a relational database in production, and its high availability designs depend on a synchronously replicated database, so database operations, clustering and upgrades are the main load. FreeIPA bundles a directory, Kerberos, a certificate authority and DNS. Its deployment guidance calls for several replicas per datacenter, dedicated servers and backups that account for certificate renewal. Ask for effort estimates against your user count, number of applications, sites and team skills.
Can a small team run Authelia on its own?
Often yes, if the team already runs a supported reverse proxy and can keep the login service behind it up to date. Authelia has a narrow scope: it decides whether each proxied request is allowed, redirects unauthenticated users to its login portal, and handles second factors such as one-time passwords, security keys, passkeys and Duo push. It only serves websites over HTTPS and does not support SAML, so SAML-only applications need another option. Its user backend is either an LDAP directory such as FreeIPA or Active Directory, or a YAML file of hashed passwords, which suits small user lists. The team still owns proxy configuration, access rules, backend choice, secrets handling and upgrades. If you also need OpenID Connect clients for many applications, certificates or a directory, plan for skills beyond Authelia alone.
Can FreeIPA be run without Linux and directory skills?
No. FreeIPA needs both Linux administration skills and directory skills to run safely. It combines 389 Directory Server, MIT Kerberos, the Dogtag certificate authority, SSSD on clients and optional ISC BIND DNS and NTP, so your team must be comfortable with Linux hosts, service management, DNS, time synchronization and LDAP access control. Kerberos realms, certificate renewal and replication topology all depend on that knowledge. FreeIPA's backup documentation warns that restoring an outdated backup into an active replica topology can break replication, and that the first server handles certificate renewal and CRL publication by default. If your team lacks these skills, arrange training or an implementation partner before installation. Red Hat Enterprise Linux packages this work as Identity Management, which may suit teams that want a vendor-supported build.
Should we hire a partner or build the platform in-house?
Build in-house when your team already has the skills to run the platform and the staff time to own it for years. Hire a partner when the work is a one-time build, a hardening pass or a compliance-ready rollout that your team cannot absorb alongside daily operations. The cost structures differ. In-house work is paid in staff time that recurs for as long as the platform runs. A partner engagement is a scoped project, plus any retainer you choose for upgrades and ongoing support. DeployOpen plans, implements, hardens, backs up, upgrades and documents self-hosted platforms inside your own infrastructure. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. DeployOpen does not publish a price list, so ask for a quote built from the written scope, and ask how handover to your staff works.
How long does an identity platform project take?
The timeline follows from the written scope, so no general duration applies here. Project length depends on the number of applications to integrate, the identity sources to connect, such as Active Directory or an existing LDAP directory, the multi-factor and certificate requirements, and the number of sites and replicas. Migrating existing users and sessions, and collecting compliance evidence, add further work. Ask for a schedule that lists each deliverable, its dependencies and which tasks your staff perform and which the partner performs. DeployOpen agrees scope, deliverables and timelines in writing before work starts, so the duration for your environment comes from that document alone. Compare schedules from any vendor against the same scope so the estimates are comparable.
Can Keycloak federate existing Active Directory users?
Yes. Keycloak federates users from LDAP or Active Directory, so existing accounts can sign in through Keycloak. Whether Keycloak stores a local copy of those users is a setting to confirm in your environment. Federation depends on how your directory is organized, which groups and attributes your applications need, and whether password validation, account status and group mapping behave as expected in a test realm. Plan the bind account, the search scope, the TLS configuration for directory connections and the attribute mappings before you commit. Keycloak can also broker logins to external OpenID Connect or SAML identity providers, which helps if another identity provider already sits in front of some applications. Ask for federation to be tested against a copy of your directory before cutover.
Can we switch between Keycloak, Authelia and FreeIPA later?
Switching is possible, but the effort depends on the role each platform plays in your stack. The directory is the shared layer. FreeIPA, Active Directory or OpenLDAP can serve as the source of accounts that Keycloak federates and that Authelia authenticates against, so moving the directory is a separate project from moving the login layer. Changing the SSO layer means rebuilding client registrations, protocol settings for OpenID Connect, OAuth 2.0 or SAML, session and token behavior, and each application's login configuration. Confirm whether second-factor enrollments can be carried over or must be repeated. FreeIPA's certificates and Kerberos realm are harder to move because clients, services and trusts depend on them. Keep an inventory of applications and identity dependencies current, since it drives the cost of any later switch.
What changes if you switch platforms later
Leaving Keycloak or Authelia is mostly an integration project, but the work sits in different places. In Keycloak, the cost is in the client registrations and the user sources. Each application holds a client with its own redirect URIs, and each one has to be recreated and retested on the new platform. Any LDAP or Active Directory federation that feeds users into Keycloak has to be rebuilt as well, so list every federated source and every redirect URI before you commit. With Authelia, the integration lives in the reverse proxy. Each protected site depends on the proxy asking Authelia whether to allow a request, so a move to another SSO product means rewriting that proxy configuration, whether it runs Traefik, NGINX or another supported proxy, and retesting session and cookie behavior. Authelia's users come from an LDAP directory or a YAML file, so those accounts can stay in their directory during the move.
FreeIPA is the hard one to move, because its state is spread across the Kerberos realm, the Dogtag certificate authority and the 389 Directory Server replica topology. Enrolled hosts and services hold keytabs and principals tied to the realm, so changing the realm is effectively a re-enrollment of every client. The certificate authority is a decision you make before installation: an integrated CA with a self-signed root, an integrated CA signed by an external CA, or a CA-less install with certificates from an outside authority. Confirm in the documentation for your FreeIPA release whether that choice can be changed later, because the answer determines how much a later move costs. Replication needs the same care. The first server handles certificate renewal and CRL publication by default, and the recommended layout of two to three replicas per datacenter, with no more than four replication agreements per replica, shapes how any new server joins.
Backups and replication matter during any move. FreeIPA's backup documentation warns that restoring an outdated backup into an active replica topology can break replication, so take a fresh ipa-backup before each cutover step and rehearse an ipa-restore on a separate host first. Record which server currently holds the CA and CRL roles so that role moves before any server is decommissioned. Before you commit, confirm these points in writing with your vendor or implementation partner: your user sources (LDAP, Active Directory or a file for Authelia), the full list of Keycloak clients and redirect URIs, the proxy and version Authelia must sit behind, the CA model and realm name, and the replica layout you will keep through the move. Ask for a named rollback step for each one.
How DeployOpen helps choose and implement one of the three
DeployOpen starts with the question that decides between these three: whether you need a general SSO server for OIDC and SAML applications, a login portal in front of a reverse proxy, or a Linux identity platform with Kerberos and a certificate authority. We plan, build, document and support the option you choose inside your own infrastructure, and we agree the scope in writing before work starts.
How we scope
- The written scope names the platform, the user sources and the applications that need single sign-on.
- For Authelia, it covers the reverse proxy, HTTPS hostnames and second factors each protected app needs.
- Engagements are fixed-scope, so deliverables and timelines are agreed in writing before work starts.
How we build
- For Keycloak, we size the production database (PostgreSQL 14 to 18 is supported) and the high availability design.
- For Authelia, we set up the HTTPS reverse proxy integration and the LDAP or YAML first-factor backend.
- For FreeIPA, we plan replicas per datacenter, DNS, the certificate authority model and backup and restore.
How we hand over
- Deliverables include the configuration and documentation the written scope lists, so your team can review what was built.
- Backup and restore procedures are documented for each platform, including FreeIPA's ipa-backup and ipa-restore.
- Where the platform feeds a compliance review, we prepare the evidence and controls, but auditors issue the attestation.
How we support
- Upgrades are planned against each project's release policy, such as Keycloak's opt-in breaking changes in minor releases.
- Ongoing support, upgrades and continuous testing are available as retainers after the initial handover.
- Security testing of the deployed login flows, APIs and admin settings can be scoped before go-live or afterward.

