1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-23 14:22:54 +00:00

core-start-service: make the grapi ldap-backend usable (#227)

* core-start-service: make the grapi ldap-backend usable
* fix startup script for kopano grapi backend
This commit is contained in:
bjoernneumann
2019-08-29 12:47:21 +02:00
committed by Felix Bartels
parent 1c4b520b53
commit db63ee39cb
2 changed files with 13 additions and 2 deletions
+11 -1
View File
@@ -84,9 +84,19 @@ grapi)
export socket_path=/var/run/kopano/grapi
mkdir -p "$socket_path"
chown -R kapi:kopano "$socket_path"
# TODO there could be a case where multiple backends are desired
case $GRAPI_BACKEND in
ldap)
export LDAP_URI="${KCCONF_GRAPI_LDAP_URI}"
export LDAP_BASEDN="${KCCONF_GRAPI_LDAP_BASEDN}"
export LDAP_BINDDN="${KCCONF_GRAPI_LDAP_BINDDN}"
bindpw="$(cat "${KCCONF_GRAPI_LDAP_BINDPW_FILE}")"
export LDAP_BINDPW="${bindpw}"
;;
esac
# cleaning up env variables
unset "${!KCCONF_@}"
exec kopano-grapi serve
exec kopano-grapi serve --backend="$GRAPI_BACKEND"
;;
kapi)
if [ "$KCCONF_KAPID_INSECURE" = "yes" ]; then