security

Ldap

Start a ldap server

docker run -p 389:389 -p 636:636 --volume /data/slapd/database:/var/lib/ldap  --name my-openldap-container --detach osixia/openldap:1.4.0

Search into a ldap server

docker exec my-openldap-container ldapsearch -x -H ldap://0.0.0.0:389 -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w admin

Add a user

docker exec my-openldap-container ldapadd -x -D "cn=admin,dc=example,dc=org" -w admin -f /container/service/slapd/assets/test/new-user.ldif -H ldap://0.0.0.0:389 

Generate a password

# into the docker container
slappasswd -h {SSHA} -s abcd123
This page was last modified: