View on GitHub

docker-devbox

[DEV] Docker stacks to quickly setup a dev environment and test some tools.

OpenLDAP

Containers running osixia/openldap and osixia/docker-phpLDAPadmin.

Usage with docker

LDAP_DOMAIN=my-domain.com LDAP_ADMIN_PASSWORD=my-password docker compose up -d

For example :

ou=groups,dc=my-domain,dc=com
cn=admins,ou=groups,dc=my-domain,dc=com
cn=users,ou=groups,dc=my-domain,dc=com

ou=people,dc=my-domain,dc=com
cn=somebody,ou=people,dc=my-domain,dc=com
...
ldapsearch -H ldap://localhost:389 -D "cn=admin,dc=my-domain,dc=com" -b "dc=my-domain,dc=com" -w "my-password" -s sub "(objectClass=*)"

Resources

See https://github.com/osixia/docker-openldap