/ldap-ad-it

Simple LDAP server simulating AD for integration testing

Primary LanguageDockerfile

Simple LDAP server simulating AD for integration testing

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

Enhancements in this fork

  • Ability to mount a directory as a volume for a custom ldif file which can be specified by the environment variable USERS_LDIF
  • Updated version of ldap server

Docker

Building

docker build -t heikoschwarz/ldap-ad-it:latest .

Docker Hub

Get the image it from https://hub.docker.com/r/heikoschwarz/ldap-ad-it

Running

With predefined users from /ldap/users.ldif:

docker run -it --rm -p 10389:10389 heikoschwarz/ldap-ad-it:latest

With your own users from your volume:

docker run -it --rm -v data:/data --env USERS_LDIF=/data/myusers.ldif -p 10389:10389 heikoschwarz/ldap-ad-it:latest

With your own users from your volume on Windows:

docker run -it --rm -v //c/Users/path/to/my/data:/data --env USERS_LDIF=/data/myusers.ldif -p 10389:10389 heikoschwarz/ldap-ad-it:latest