Self-host Kanidm
v1.12.0Identity provider with passkeys, OIDC, LDAP, RADIUS
- Stars
- 5 549
- Ports
- 8443 (HTTPS webserver/REST interface (bindaddress)), 3636 (Read-only LDAPS gateway (ldapbindaddress, disabled by default; the quickstart publishes it as 636:3636))
docker.io/kanidm/serverWhat is Kanidm?
Kanidm is an identity management platform that other applications and services can delegate authenticating and storing identities to, aiming to cover so many needs that no companion identity component is required. It suits small home labs and families as well as businesses and enterprises, leaning on strict defaults, straightforward configuration and self-healing parts. Day to day it offers passkey (WebAuthn) sign-in, including attested keys, password plus TOTP credentials, an OAuth2/OIDC provider for web single sign-on with claim and scope mapping, a portal listing linked applications, a WebUI for user self-service, a RADIUS service covering networks and VPNs, a read-only LDAP gateway over TLS for legacy systems, distribution of SSH keys to Unix hosts, and Linux/Unix PAM and nsswitch integration with TPM-protected offline authentication. Access decisions use role-based models with account policy, backups run online on a cron schedule, and two-node high availability comes from Kanidm's own replicated database. Day-to-day administration happens mostly through the kanidm and kanidmd command-line tools, since the web interface is aimed at users rather than operators. Self-hosting centres on the kanidm/server container: a data volume holding server.toml, a TLS chain and key, then publishing 8443 (and optionally 3636 for the LDAP listener); client tooling is packaged for openSUSE, Fedora, CentOS Stream, Alpine, FreeBSD, Arch, NixOS, Ubuntu and Debian PPAs, Homebrew and cargo. Watch the constraints: releases must be upgraded one version at a time, the domain and origin settings must agree or the server refuses to start, and the project describes its monitoring design as still early.
Kanidm alternatives
Pocket IDSelf-hosted, open-source OpenID Connect Certified provider for homelabs and small teams that find Keycloak or Authentik too heavy; passkey sign-in only.ComparePocket ID with Kanidm
authentikSelf-hosted, open-source identity provider for SSO over OIDC, SAML, LDAP, RADIUS and SCIM, with TOTP and passkeys, configurable flows, RBAC and Helm or Compose installs.Compareauthentik with Kanidm
CasdoorSelf-hosted open-source IAM and SSO server with a web console, a built-in MCP server for AI agents, and support for more than 100 identity providers.CompareCasdoor with Kanidm
zitadelSelf-hosted open-source IAM stack: password, passkey and second-factor logins, external IdP brokering, OIDC/SAML tokens, on PostgreSQL with Docker or Kubernetes.Comparezitadel with Kanidm
rauthyOpen-source, self-hosted Rust identity provider: single sign-on for apps and Linux hosts via OIDC, OAuth 2 and PAM, with passkey-first MFA, HA mode and an admin UI.Comparerauthy with Kanidm
LLDAPlldap is a self-hosted, open-source lightweight LDAP server with web UI, supporting SQLite/MySQL/PostgreSQL, simpler than OpenLDAP.CompareLLDAP with Kanidm
AuthorizerSelf-hosted open-source auth and authorization server: OAuth2/OIDC, social logins, magic links, MFA, passkeys, SAML SSO, RBAC plus embedded OpenFGA, on 13+ databases.CompareAuthorizer with Kanidm
openamSelf-hosted open-source access management: SSO, SAML, OAuth 2.0 and OIDC federation, adaptive authentication, centralized policy; ships as a Docker image or WAR.Compareopenam with Kanidm
Should you self-host Kanidm?
Kanidm scores 67/100 on selfhost.directory (how scoring works) and ranks #3 of 3 in IAM. It has 5 549 GitHub stars, +108 in the last 30 days.
It shipped 15 stable releases in the past year. The latest, v1.12.0, came out on 1 November 2026. New versions land roughly every 7 days.
Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is MPL-2.0-licensed and written mostly in Rust.
Its closest alternative on selfhost.directory is authentik (80/100, 26 266 stars). It scores higher overall, so compare the two before you pick. See Kanidm vs authentik side by side.
Features
- Application portal
- CLI administration tooling
- High-availability replication
- OAuth2 / OpenID Connect provider
- Passkeys (WebAuthn) authentication
- RADIUS Authentication
- Read-only LDAPS gateway
- Role-based Access Control
- Scheduled online backups
- SCIM data importOnly supported for synchronisation from another IDP at this time.
- Self-hosted database
- SSH Key Distribution
- Two-factor authentication (TOTP)Not advised for high security environments per the project.
- Unix/Linux integration (PAM and nsswitch)
- User self-service web UI
Kanidm README
More in IAM
autheliaSelf-hosted, open-source IAM portal providing single sign-on, multi-factor authentication and an OpenID Certified OpenID Connect provider for proxied apps.
authentikSelf-hosted, open-source identity provider for SSO over OIDC, SAML, LDAP, RADIUS and SCIM, with TOTP and passkeys, configurable flows, RBAC and Helm or Compose installs.
authgearSelf-hosted open-source CIAM and identity provider, an Auth0/Clerk alternative with passkeys, MFA, SAML SSO and RBAC, deployed via Helm.
CasdoorSelf-hosted open-source IAM and SSO server with a web console, a built-in MCP server for AI agents, and support for more than 100 identity providers.
defguardSelf-hosted WireGuard VPN platform bundling an identity provider, per-connection MFA, LDAP/AD sync and firewall ACLs; open-source AGPL core written in Rust.
hankoOpen-source self-hosted authentication and user management platform with passkeys, MFA, OAuth SSO and SAML, an API-first alternative to Auth0 or Clerk.

0 comments