selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

GitHub
LLDAP logo

Self-host LLDAP

v0.6.3

Lightweight LDAP authentication server with web UI

BetaOpen SourceGPL-3.0
Updated6 months ago
LanguageRust
Setup difficultyModerate
Stars
6 618
Ports
3890 (LDAP), 6360 (LDAPS (LDAP over SSL)), 17170 (HTTP web front-end)
Docker
lldap/lldap
Install with Docker Compose
User list page in lldap web UI

What is LLDAP?

lldap is a lightweight LDAP implementation focused on authentication for self-hosted environments. It provides a simplified LDAP interface with a built-in web UI for user management, allowing users to edit their details and reset passwords via email. It stores data in SQLite by default with optional MySQL/MariaDB or PostgreSQL backends. The server exposes LDAP (port 3890), LDAPS (port 6360), and HTTP (port 17170) interfaces. It integrates with many services like Nextcloud, Keycloak, Authelia, and Authentik through LDAP. lldap is not a full LDAP server — it intentionally omits features like password hash exposure and LDAP browsing tools. It can be deployed via Docker, Podman, Kubernetes, TrueNAS, various Linux package managers, or compiled from source. The project is licensed under GPL-3.0 and developed by volunteers with a bus factor of 1.

LLDAP alternatives

All self-hosted alternatives to FreeIPA →

Should you self-host LLDAP?

LLDAP scores 66/100 on selfhost.directory (how scoring works) and ranks #9 of 40 in Authentication. It has 6 618 GitHub stars, +72 in the last 30 days.

It shipped 1 stable release in the past year. The latest, v0.6.3, came out on 30 April 2026.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is GPL-3.0-licensed and written mostly in Rust.

Its closest alternative on selfhost.directory is keycloak (86/100, 37 776 stars). It scores higher overall, so compare the two before you pick. See LLDAP vs keycloak side by side.

Features

  • Bootstrap script for IaC
  • Custom attributes
  • GraphQL API
  • Group management with memberOf
  • LDAP Authentication
  • LDAPS support
  • Multiple Database Backends
  • Password reset via email
  • Role-based Access Control
  • Terraform ProviderCommunity-maintained, not official
  • Web-based user management UI

LLDAP README

How to install LLDAP

Install LLDAP with Docker Compose

Docker Compose
Environment variables
LLDAP_JWT_SECRET, LLDAP_KEY_SEED, LLDAP_LDAP_BASE_DN, LLDAP_LDAP_USER_PASS, LLDAP_DATABASE_URL, LLDAP_SMTP_OPTIONS__*, LLDAP_LDAPS_OPTIONS__*

version: "3"

volumes: lldap_data: driver: local

services: lldap: image: lldap/lldap:stable ports: - "17170:17170" volumes: - "lldap_data:/data" environment: - UID=1000 - GID=1000 - TZ=Europe/Paris - LLDAP_JWT_SECRET=REPLACE_WITH_RANDOM - LLDAP_KEY_SEED=REPLACE_WITH_RANDOM - LLDAP_LDAP_BASE_DN=dc=example,dc=com - LLDAP_LDAP_USER_PASS=CHANGE_ME

Generate secrets with ./generate_secrets.sh. UID/GID should match your user. Uncomment LDAP/LDAPS ports if needed.

How to configure LLDAP

  • LLDAP_VERBOSEfalseEnable verbose logging

    values: true/false

  • LLDAP_LDAP_PORT3890Port for LDAP server

    values: port number

  • LLDAP_HTTP_URLPublic URL of the server for password reset links and sub-path support

    values: URL

  • LLDAP_JWT_SECRETRandom secret for JWT signature, should be shared with application servers that consume JWTs

    values: random string (32+ chars recommended)

  • LLDAP_LDAP_USER_PASSAdmin password for LDAP bind and web UI (minimum 8 characters)

    values: any string

LLDAP releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

Is lldap sustainable? Can we depend on it for our infrastructure?

LLDAP is hobbyist software with bus factor of 1 (only @nitnelave knows the full codebase). Not recommended for big organization infrastructure unless you can maintain it yourself.

Can I make a donation to fund development?

Yes, donate via buymeacoffee.com/nitnelave to support the maintainer. Donations are <100€/month and not enough for full-time development.

Does lldap provide commercial support contracts?

No, LLDAP is volunteer-developed free software on a best-effort basis. No official commercial support or endorsed third-party providers.

Does lldap support vhosts (multi-tenancy)?

No native multi-tenancy support. Users share the same base DN. Can run separate instances per domain since LLDAP is lightweight (~15 MiB RAM).

Migrating from SQLite

Follow the database migration documentation to migrate from SQLite to MySQL/MariaDB or PostgreSQL.

Discord Integration

Use the LLDAP-Discord bot to automate Discord role synchronization for paid memberships, allowing users to self-serve create LLDAP accounts via /register command.

I can't log in!

Check if the admin password in config is only used for initial creation, ensure /data folder is persistent, verify lldap_config.toml and users.db exist with correct permissions, restart the server.

More in Authentication

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…