talira

A simple, secure, and fast identity management platform

open sourceMPL-2.0self-hostablefree

Kanidm is a self-hosted identity management server written in Rust that aims to be a complete identity provider on its own, without Keycloak or a separate LDAP server beside it. One server is an OAuth 2.0 and OpenID Connect provider with passkeys (including attested passkeys) and TOTP, gives Linux and Unix machines accounts through PAM and nsswitch with offline logins, distributes SSH keys, authenticates Wi-Fi and VPN users over RADIUS, and offers a read-only LDAPS gateway for older apps. It favours strict, secure defaults: TLS is mandatory everywhere, data lives in its own embedded SQLite database, and two servers can replicate for high availability. Administration is mainly through the kanidm CLI, while the web UI is for users' self-service and an application portal. It's an MPL-2.0 community project started by an Australian developer, and it can import users from FreeIPA or LDAP to run alongside them or migrate.

Problems it solves

  • one self-hosted login for my homelab apps with passkeys instead of passwords
  • single sign-on for my self-hosted web apps over OpenID Connect without running Keycloak and an LDAP server
  • log in to my Linux servers with the same accounts as my web apps, even when the server is offline
  • distribute SSH public keys to all my hosts from a central user directory
  • authenticate Wi-Fi and VPN users against our identity server over RADIUS with a separate network password
  • give legacy apps that only speak LDAP read access to our users and groups
  • a lighter alternative to FreeIPA for managing Linux users and groups
  • require hardware security keys from specific vendors for our administrators
  • migrate users from FreeIPA or an LDAP directory to a modern identity server
  • an identity provider that refuses insecure OAuth setups by default, like missing PKCE
  • let users reset their own credentials from a link or QR code an admin sends
  • a small, fast identity server that runs in a single container

Features

  • passkeys (WebAuthn) and attested passkeys, with account policy on allowed authenticators
  • password plus TOTP, prompting for the TOTP first
  • OAuth 2.0 and OpenID Connect provider: authorization code with PKCE, client credentials, token exchange, introspection and revocation
  • application portal of linked applications
  • Linux and Unix integration through PAM and nsswitch, with TPM-protected offline authentication
  • SSH public key distribution to hosts
  • RADIUS with MSCHAPv2 and EAP-TLS, through a provided RADIUS container
  • read-only LDAPS gateway for bind and search
  • role-based access control and delegated admin groups
  • two-node replication for high availability
View 7 more
  • web UI for user self-service and credential reset links
  • kanidm CLI for administration
  • REST API with an OpenAPI schema and Swagger UI; service account API tokens
  • sync from FreeIPA and LDAP (RFC 4533) to run alongside or migrate
  • Rust client library (kanidm_client) and Python module (kanidm on PyPI)
  • Docker images for the server, RADIUS and tools; packages for openSUSE, Arch Linux, NixOS, Alpine Linux, FreeBSD, Debian, Ubuntu, Fedora and macOS (Homebrew tap)
  • quarterly releases, each supported for 4 months

Limitations

  • Doesn't support SAML: its supported standards are OAuth 2.0 and OpenID Connect, read-only LDAP and RADIUS1
  • Doesn't accept writes over LDAP: the LDAP interface is read-only, for bind and search12
  • Doesn't use an external database: it stores everything in its own SQLite database and can't run on PostgreSQL or MySQL3
  • Doesn't replicate beyond two servers: a replication topology has at most 2 nodes4
  • No admin web UI: administration is mainly through the kanidm CLI, and the web UI is for users' self-service5
  • Doesn't run without TLS: the server won't start without a certificate, even behind a load balancer3

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what Kanidm does.

  1. Pocket ID Easy self-hosted OIDC provider with passkeys
  2. Keycloak Open source identity and access management for modern applications and services
  3. Authelia The Single Sign-On Multi-Factor portal for web apps
  4. authentik The authentication glue you need
  5. LLDAP Light LDAP implementation for authentication
  6. FreeIPA Integrated security information management solution

Compare Kanidm with the top 3