intoolswetrust / ldap-server

Simple in-memory LDAP server for testing purposes - single JAR based on ApacheDS
Apache License 2.0
160 stars 59 forks source link

Docker README has inaccurate instructions for how to load a custom LDIF on startup #65

Closed joostdecock closed 3 months ago

joostdecock commented 6 months ago

Hey there, thanks for making this available 🙏 Very useful for unit testing 👍

I wanted to load my custom LDIF, and followed the instructions from the Docker README:

docker run -it --rm \
    -p 10389:10389 \
    -v `pwd`:/mnt \
    kwart/ldap-server \
    java -jar ldap-server.jar /mnt/custom.ldif

However, this does seem to re-use the command when running it from source, but inside the container the java -jar ldap-server.jar is already happening, so to load a custom LDIF you do:

docker run -it --rm \
    -p 10389:10389 \
    -v `pwd`:/mnt \
    kwart/ldap-server \
    /mnt/custom.ldif

Not the end of the world obviously, but a small docs improvement, and perhaps this issue can help others who face a similar problem.

Thanks again.