canaille-globuzma/demo/slapd.sh
2021-08-31 15:47:06 +02:00

12 lines
400 B
Bash
Executable file

#!/bin/bash
if [ "$SLAPD_BINARY" == "NATIVE" ] || ([ "$SLAPD_BINARY" == "" ] && type slapd > /dev/null 2>&1); then
env/bin/python ldap-server.py
elif [ "$SLAPD_BINARY" == "DOCKER" ] || ([ "$SLAPD_BINARY" == "" ] && type docker-compose > /dev/null 2>&1); then
docker-compose up
else
echo "Cannot start the LDAP server. Please install openldap or docker on your system."
return 1
fi