levantar openldap en docker

#!/bin/bash
# https://hub.docker.com/r/dinkel/openldap/

# standard run
docker run -d -p 389:389 -e SLAPD_PASSWORD=123456 -e SLAPD_DOMAIN=example.com dinkel/openldap

cat docker.sh

# ldif ADD
#ldapadd -D “cn=admin,dc=example,dc=com” -f exportacion/ldapuser_clean.ldif -W -x

# show inventory
#ldapsearch -x -b “dc=example,dc=com” “objectclass=*”
# show all data
# ldapsearch -x -D “cn=admin,dc=example,dc=com” -b “dc=example,dc=com” “objectclass=*” -W -x
# prepopulate ldiff
#docker run -d -p 389:389 –volume <path del host>/exportacion:/etc/ldap.dist/prepopulate \
# -e SLAPD_PASSWORD=123456 \
# -e SLAPD_DOMAIN=example.com \
# dinkel/openldap