Skip to content
This repository was archived by the owner on Dec 17, 2023. It is now read-only.

robpco/docker-ldap-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LDAP Docker for HashiCorp SEs

This is a quick and dirty localized LDAP server for using in demonstrations. One of the nicer benefits of using the OTS OpenLDAP server is that it automatically sets up the memberOf overlay. This can help you troubleshoot LDAP connectivity issues customers may be having.

If you want to customize this, you can add any LDIF files you want into the ldif directory and they will be picked up on container start.

For the most part, you really don't have to do anything.

If you want to change the default password: e.g.

export LDAP_PASSWD="this_is_a_terrible_password_42"
export LDAP_PASSWD_HASH=$(docker exec -it openldap slappasswd -h {SSHA} -s ${LDAP_PASSWD}| tr -d '\r\n')
./create_user_records.sh

To run the tool using Docker directly, use launch_ldap.sh

./launch_ldap.sh

If you want to add more users, you can add them to the users.csv file. Currently that also adds everyone to the solutions_engineering group, so that may not be favorable. Feel free to add your own groups.

When you're done just kill docker:

docker kill openldap

Releases

No releases published

Packages

No packages published

Languages

  • Shell 62.7%
  • Python 36.1%
  • Dockerfile 1.2%