Copy from bitnami openldap container
Find a file
2026-01-14 15:38:55 +01:00
usr/local Run later enable memberof 2026-01-12 19:03:59 +01:00
docker-compose.yml Dirty import from bitnami with already few modification: 2025-10-02 21:14:51 +02:00
Dockerfile Fix entrypoint and cmd path 2026-01-09 19:00:06 +01:00
Dockerfile-debug DockerFile Debug image 2026-01-11 18:14:39 +01:00
example.env Use new overlay fun 2026-01-12 15:33:25 +01:00
Makefile Using an env file to test some parameters 2026-01-12 01:05:46 +01:00
readme.bitnami.md Basic readme 2026-01-12 12:44:17 +01:00
Readme.md LDAP_ADMIN CN demonstration 2026-01-14 15:38:55 +01:00

OpenLDAP

Heavily inspired/forked by bitnami/openldap.

Since they decided to not provide freely containers images, and I needed openldap CT, I remade it and started to remove bitnami references.

LDAPI IPC Socket

To change LDAPI location, you have to set it when starting slapd.
It starts in run.sh and libopenldaps.sh -> func ldap_start_bg.
You have to replace '/' by %2F.
ex:
/sbin/slapd -u slapd -d 256 -h "ldapi://%2Fopt%2Fopenldap%2Fldapi ldap://:1389/" -F /opt/openldap/storage/slapd.d

Environment

  • LDAP_ROOT=dc=exampledc,dc=org
  • LDAP_ADMIN_USERNAME=admin
  • LDAP_ADMIN_PASSWORD=adminpassword
  • LDAP_ADMIN_DN="${LDAP_ADMIN_USERNAME/#/cn=},${LDAP_ROOT}"
  • LDAP_USERS=user01,user02
  • LDAP_PASSWORDS=password1,password2
  • LDAP_ALLOW_ANON_BINDING=no

Persistant storage

To keep data you have to mount storage in /opt/openldap/storage

ToDo

  • Give a method to enable memberOf overlay easily
  • Give a method to ldapi socket path by env