Browse Source

Allow connection to external LDAP server

master
Nicholas Brown 6 years ago
parent
commit
04a24728af
2 changed files with 5 additions and 1 deletions
  1. +1
    -0
      Docker/Dockerfile
  2. +4
    -1
      Docker/app/start.sh

+ 1
- 0
Docker/Dockerfile View File

@ -10,6 +10,7 @@ ENV XMPP_MUC chat.example.com
ENV XMPP_STARTUP groupchat/room%40chat.example.com
ENV XMPP_ADMIN admin
ENV LDAP_HOST container
ENV LDAP_DN cn=admin,dc=example.com
ENV LDAP_PWD password
ENV LDAP_GROUP mygroup


+ 4
- 1
Docker/app/start.sh View File

@ -18,7 +18,10 @@ sed 's/{{XMPP_MUC}}/'"${XMPP_MUC}"'/' -i /app/config/dev_config.json
sed 's/{{XMPP_STARTUP}}/'"${XMPP_STARTUP}"'/' -i /app/config/dev_config.json
sed 's/{{XMPP_ADMIN}}/'"${XMPP_ADMIN}"'/' -i /app/config/dev_config.json
sed 's/{{LDAP_HOST}}/'"${LDAP_PORT_389_TCP_ADDR}"'/' -i /app/config/dev_config.json
if [ ${LDAP_HOST} = "container" ]; then
LDAP_HOST=${LDAP_PORT_389_TCP_ADDR}
fi
sed 's/{{LDAP_HOST}}/'"${LDAP_HOST}"'/' -i /app/config/dev_config.json
sed 's/{{LDAP_USER_BASE}}/'"${LDAP_USER_BASE}"'/' -i /app/config/dev_config.json
sed 's/{{LDAP_GROUP_BASE}}/'"${LDAP_GROUP_BASE}"'/' -i /app/config/dev_config.json
sed 's/{{LDAP_DN}}/'"${LDAP_DN}"'/' -i /app/config/dev_config.json


Loading…
Cancel
Save