talira

Light LDAP implementation for authentication

open sourceGPL-3.0-onlyself-hostablefree

LLDAP is a lightweight authentication server written in Rust that gives self-hosted apps a simplified, opinionated LDAP interface for logging users in, with its own web UI for managing users, groups and custom attributes, and self-service password resets by email. It deliberately isn't a full LDAP server like OpenLDAP: it targets services such as Nextcloud, Jellyfin and Gitea that can only take external users over LDAP, and it serves as the user directory behind Authelia, authentik or Keycloak, which add OAuth and OpenID Connect single sign-on. Data lives in SQLite by default, or MySQL, MariaDB or PostgreSQL, and the server needs under 10 MB of RAM. It's GPL-3.0 volunteer software maintained mainly by Valentin Tolmer (nitnelave), with a GraphQL API for scripting.

Ways to install

Problems it solves

  • one set of users and passwords for all the self-hosted apps on my home server
  • my self-hosted apps only support LDAP for external logins and OpenLDAP is far too complicated to set up
  • a simple LDAP server with a web UI where I can add users and put them in groups
  • a user directory to sit behind Authelia or authentik so my family can sign in once
  • let my users reset their own password by email instead of messaging me
  • give Jellyfin, Nextcloud and Gitea the same logins without creating accounts in each one
  • restrict which users can sign in to an app by LDAP group membership
  • an LDAP backend for Keycloak that I don't have to learn slapd for
  • a tiny identity store that runs in a container with almost no memory
  • log in to Linux servers with the same accounts as my web apps through PAM
  • create users and groups from a script or keep them in a file and sync them to the directory
  • give each service a read-only LDAP account so it can't change anyone's password
  • lightweight self-hosted alternative to FreeIPA for a homelab
  • add custom user attributes that a particular app needs for LDAP login
  • LDAP authentication for Proxmox VE, Grafana and Home Assistant from one place

View all 16 problems

Features

  • simplified LDAP interface for authentication, with memberOf group filters
  • web UI to create users, set passwords, manage groups and edit custom attributes
  • users edit their own details and reset their password by email (with SMTP configured)
  • SQLite by default; MySQL, MariaDB or PostgreSQL as the database
  • GraphQL API for scripting
  • optional LDAPS
  • lldap_strict_readonly and lldap_password_manager groups for service accounts with limited rights
  • password hashing with a zero-knowledge proof scheme
  • Linux account login through PAM and nslcd
  • bootstrap.sh script that applies a list of users, groups and attributes from a file
View 4 more
  • Docker and Podman images, including rootless variants
  • packages for Arch Linux, Debian, CentOS, Fedora, openSUSE, Ubuntu and FreeBSD
  • sample configurations for 80+ services, including Authelia, authentik, Keycloak, Nextcloud, Jellyfin and Gitea
  • uses under 10 MB of RAM including the database

Limitations

  • Doesn't do OAuth or OpenID Connect single sign-on itself: put Authelia, authentik or Keycloak in front and use LLDAP as their user store6
  • Doesn't support most LDAP write operations: over LDAP you can only create users and change passwords, so other changes go through the web UI or GraphQL API7
  • Doesn't hand out password hashes: services that check passwords against a hash themselves, such as Synology, don't work with it6
  • Doesn't support multi-tenancy (virtual hosts): all users share one base DN, so run one instance per domain8
  • No commercial support: it's maintained by volunteers on a best-effort basis8

Capabilities

Has an APIplan not known

Alternatives

The same job

These do what LLDAP does.

  1. Kanidm A simple, secure, and fast identity management platform
  2. OpenLDAP Community developed LDAP software
  3. 389 Directory Server The enterprise-class Open Source LDAP server for Linux
  4. FreeIPA Integrated security information management solution
  5. Samba The standard Windows interoperability suite of programs for Linux and Unix
  6. Microsoft Active Directory Domain Services A directory service that makes network resource data available to authorized network users and administrators

Compare LLDAP with the top 3