canaille-globuzma/demo/slapd.sh

13 lines
269 B
Bash
Raw Normal View History

#!/bin/bash
if type slapd > /dev/null 2>&1; then
env/bin/python ldap-server.py
elif 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