This is a simple LDAP server that tries to simulate an AD using Apache Directory Server.
- It has had basic testing with:
- Is based on
To just get something running with some test data:
docker run -it --rm -p 389:10389 psdocker/ldap-ad-it
You'll likely want to run some customized users/OUs/etc. To do that, you can
mount a file into /ldap/users.ldif
. An example:
docker run -d --name=ldap-ad-it --rm \
-v $PWD/testdata/users.ldif:/ldap/users.ldif \
-p 389:10389 \
psdocker/ldap-ad-it:latest
I do not recommend writing your own LDIF file by hand. I used an OpenLDAP server and phpldapadmin to configure what I wanted, then exported and tuned from there. I used this toolset.
- Build image
docker build -t psdocker/ldap-ad-it .
- Run the image using
docker run -it --rm -p 389:10389 psdocker/ldap-ad-it