Seed OpenLDAP with bootstrap users including email addresses #8

Merged
timmybee merged 1 commits from feature/ldap-email-bootstrap into master 2026-03-06 10:48:31 +08:00
Owner

Summary

  • Adds docker/openldap/bootstrap.ldif which creates an ou=people OU and three test users (admin, approver, staff) each with a mail attribute, matching the database seeder
  • Mounts the LDIF into the openldap container so it is loaded on first boot
  • Adds --copy-service flag to the openldap container command, required by the osixia image to process custom LDIF files

Test plan

  • Run sail down -v && sail up -d to recreate the LDAP volumes
  • Log in as any of the seeded users (e.g. uid: admin, password: password)
  • Confirm the local user record is created with the correct email synced from the mail LDAP attribute
## Summary - Adds `docker/openldap/bootstrap.ldif` which creates an `ou=people` OU and three test users (`admin`, `approver`, `staff`) each with a `mail` attribute, matching the database seeder - Mounts the LDIF into the openldap container so it is loaded on first boot - Adds `--copy-service` flag to the openldap container command, required by the osixia image to process custom LDIF files ## Test plan - Run `sail down -v && sail up -d` to recreate the LDAP volumes - Log in as any of the seeded users (e.g. uid: `admin`, password: `password`) - Confirm the local user record is created with the correct `email` synced from the `mail` LDAP attribute
timmybee added 1 commit 2026-03-06 10:48:06 +08:00
Seed OpenLDAP with bootstrap users including email addresses
All checks were successful
linter / quality (pull_request) Successful in 1m20s
security / Dependency Audit (pull_request) Successful in 2m22s
security / Static Analysis (pull_request) Successful in 1m42s
tests / ci (8.4) (pull_request) Successful in 1m25s
tests / ci (8.5) (pull_request) Successful in 1m24s
9f47e6e2c8
Add docker/openldap/bootstrap.ldif which creates an ou=people OU and
three test users (admin, approver, staff) each with a mail attribute,
matching the database seeder. Mount the LDIF into the openldap container
and add --copy-service so it is loaded on first boot.
timmybee merged commit dd3c623bfc into master 2026-03-06 10:48:31 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: timmybee/travel#8