If you need to test-drive your ldap authentication or need a test-server to test your ldap against, this docker-image could be of use. It does come with pre-deployed users and groups, so you can test authentication and filters right away.
Just run docker-compose up -d right in here.
You can also run the prebuild images without any mounts
docker run -p 389:389 ghcr.io/eugenmayer/ldaptestserver:type1
#or
docker run -p 389:389 ghcr.io/eugenmayer/ldaptestserver:type2
See the connection details under layout.
Using docker-compose.yml, you will have 2 servers started as an example, with 2 slightly different layous, based on data-template-type1.ldif and data-template-type2.ldif
Server 1 has the port 10389 and the default domain example.org
cn=admin,dc=example,dc=orgadminServer 2 has the port 20389 and the default domain example.org
cn=admin,dc=kontextwork-test,dc=deadminWhen you see the Users / Groups below, you need to replace the <LDAP_BASE_DN> with the domain, so either dc=example,dc=org ordc=kontextwork-test,dc=de
The ldif's are templated, so you can change the container env variable LDAP_DOMAIN to have your own domain, or change the password.
<LDAP_BASE_DN> should be dc=example,dc=org if the default is not changed.
Passwords do match the the uid, so user1 for the user uid=user1,ou=accounts,<LDAP_BASE_DN> and so on.
We have one group
with the following members
<LDAP_BASE_DN> should be dc=kontextwork-test,dc=de if the default is not changed.
Passwords do match the the uid, so included1 for the user uid=included1,ou=accounts,<LDAP_BASE_DN> and so on.
We have groups
with the following members
myservice
otherservice
groupwithinvalid
You can build your images using your custom templates, custom password or LDAP_DOMAIN. See the Dockerfile included here
and just make it your own, if you like. Also see the templates and see how you can adopt or modify them to your liking.
Important: If you rely on memberOf you should ensure that your users are created before your groups in the ldif,
or memberOf will not work!
Well they all belong to osixia/docker-openldap who did bring up this awesome ldap docker image in the first place!
Content type
Image
Digest
sha256:791c4a56b…
Size
87.4 MB
Last updated
almost 4 years ago
docker pull eugenmayer/ldapexample