Skip to content

Simple LDAP server simulating AD for integration testing

Notifications You must be signed in to change notification settings

payscale/ldap-ad-it

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Simple LDAP server simulating AD for integration testing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%