This is a simple LDAP server that tries to simulate an AD using Apache Directory Server.
- Should work for activedirectory.js
- It is forked from https://github.com/dwimberger/ldap-ad-it and is based on https://github.com/kwart/ldap-server/ and http://stackoverflow.com/questions/11174835/add-memberof-attribute-to-apacheds
- 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 build -t heikoschwarz/ldap-ad-it:latest .
Get the image it from https://hub.docker.com/r/heikoschwarz/ldap-ad-it
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