canaille-globuzma/demo/slapd.sh

13 lines
400 B
Bash
Raw Normal View History

#!/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