Self Host Wizard Documentación

Directorio de usuarios (lldap)

Directorio de usuarios en una caja Self Host Wizard: la pieza lldap, en directory.<dominio de apps>, ingreso ldap, límite de memoria 68 MB.

De un vistazo

DatoValor
Direcciónhttps://directory.<dominio de apps>
Ingresoldap: la app verifica la contraseña de la oficina contra LLDAP por su cuenta
Límite de memoria68 MB (ram_mb: pico medido × 1,3)
Base de datosninguna compartida: guarda sus datos en THX_DATA
Necesitanada
La necesitanauthelia, boards, bookstack, drive, easyappointments, espocrm, forgejo, freescout, glitchtip, home, listmonk, radicale, stalwart, uptime-kuma, vaultwarden, vikunja
Contenedoreslldap
Imagen: lldaplldap/lldap:v0.6.3-alpine@sha256:2a8454b668c1aba7157e832eab0e242e1e7eb5fb7591d7e7774ba05286511ca8
Licencia (según el README)GPL-3.0-only
Proyecto original (según el README)https://github.com/lldap/lldap

Cómo activarla

thx enable agrega lldap y todo lo que necesita al estado de la caja; después thx apply la instala. Las apps se aplican recién cuando site_domain está definido.

sudo thx enable lldap
sudo thx apply

Notas técnicas (pieces/lldap/README.md)

Las notas técnicas de cada pieza están en inglés, tal como están en el repositorio.

LLDAP v0.6.3, GPL-3.0-only (Cargo.toml): the one list of users and groups. Image lldap/lldap:v0.6.3-alpine, pinned by index digest sha256:2a8454b6…11ca8; the index has linux/arm64 (docker buildx imagetools inspect, 2026-11-24). Upstream image, unmodified.

How it is wired

  • LDAP on lldap:3890 (thx network only), web UI + GraphQL on 127.0.0.1:17170, proxied by Caddy at directory.<apps_domain>. Users change their own password there. SQLite in THX_DATA.
  • Built-in admin: password = THX_SECRET_ADMIN_PASSWORD, reset to it on every start (LLDAP_FORCE_LDAP_USER_PASS_RESET=always), so the secret on disk is always the truth.
  • thx apply bootstraps, idempotently (each a check-then-fix step):

    • thx-readonly: the bind account every app gets as THX_LDAP_BIND_*, in lldap_strict_readonly, its password the generated bind_password (checked by logging in with it).
    • groups admins, org-<org>, team-<org>-<team> from state.
    • user attributes mailalias1 … mailalias16 (one string each, visible, not user-editable) for mail aliases, filled from 1. Not one list attribute: LLDAP 0.6.3 cannot match one value of a list by equality (lldap#1133; a list matches only while it holds exactly one value), and Stalwart looks recipients up by equality. A box from before moves its mailalias list into the slots and the list attribute is deleted.
  • thx user add creates users (random initial password printed once; LLDAP keeps passwords with OPAQUE, so it is set with lldap_set_password inside the container, the password in its environment, never argv). thx user alias add|rm edits the slots (more than 16 is refused); the first --admin user gets noreply@<apps_domain>.

Measured

RAM: measured peak 52 MiB (anon + shmem + kernel from memory.stat, sampled through the whole check.sh docker stage including a 10-client database load; 64 MiB with page cache) × 1.3 = ram_mb 68, mem_limit 68m. Measured 2026-11-25, e2e run 6.

Known gaps

  • key_seed and the data are coupled: LLDAP refuses to start ("private key has changed") when the seed no longer matches its database. Restore /etc/thx/secrets/lldap/ together with THX_DATA, never one alone.
  • Setting a password puts the admin session token briefly in the argv of docker exec lldap lldap_set_password --token … (visible in the host's and the container's process list while it runs): the tool takes it no other way. thx redacts it from its own errors and output. It is a JWT valid for 1 day (auth_service.rs), revoked by logout at the end of each thx command.
  • No password-reset mail: users who forget their password ask an admin (Authelia's reset is disabled).

Los datos de esta página salen de estos archivos del repositorio selfhostwizard:

  • pieces/lldap/piece.toml
  • pieces/lldap/compose.yaml
  • pieces/lldap/README.md
  • internal/piece/piece.go

Esta página se genera desde el código al compilar el sitio, así que cambia cuando cambia el código.