Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.36 KB

README.md

File metadata and controls

42 lines (31 loc) · 1.36 KB

Simple LDAP server simulating AD for integration testing

This is a simple LDAP server that tries to simulate an AD using Apache Directory Server.

Running

To just get something running with some test data:

docker run -it --rm -p 389:10389 psdocker/ldap-ad-it

Customized Values

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.

Building

  1. Build image docker build -t psdocker/ldap-ad-it .
  2. Run the image using
    docker run -it --rm -p 389:10389 psdocker/ldap-ad-it