Run:
docker run -p 389:389 vladchernikov/openldap
Use you favorite ldap client to connect with credentials:
Login DN: cn=Manager,dc=my-domain,dc=com
Password: secret
See example
To execute .sh
scripts or .ldif
files on the first run, add them to /docker-entrypoint-init
To persist data, mount volume to /var/lib/openldap
To initialize cn=config specify FORCE_SLAPADD_CN_CONFIG_LDIF_FILE_PATH variable. Even if it was previously initialized it will erase existed db on next start