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
| Dato | Valor |
|---|---|
| Dirección | https://directory.<dominio de apps> |
| Ingreso | ldap: la app verifica la contraseña de la oficina contra LLDAP por su cuenta |
| Límite de memoria | 68 MB (ram_mb: pico medido × 1,3) |
| Base de datos | ninguna compartida: guarda sus datos en THX_DATA |
| Necesita | nada |
| La necesitan | authelia, boards, bookstack, drive, easyappointments, espocrm, forgejo, freescout, glitchtip, home, listmonk, radicale, stalwart, uptime-kuma, vaultwarden, vikunja |
| Contenedores | lldap |
Imagen: lldap | lldap/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 on127.0.0.1:17170, proxied by Caddy atdirectory.<apps_domain>. Users change their own password there. SQLite inTHX_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 applybootstraps, idempotently (each a check-then-fix step):thx-readonly: the bind account every app gets asTHX_LDAP_BIND_*, inlldap_strict_readonly, its password the generatedbind_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 itsmailaliaslist into the slots and the list attribute is deleted.
thx user addcreates users (random initial password printed once; LLDAP keeps passwords with OPAQUE, so it is set withlldap_set_passwordinside the container, the password in its environment, never argv).thx user alias add|rmedits the slots (more than 16 is refused); the first--adminuser getsnoreply@<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_seedand 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 withTHX_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).