1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-21 08:45:12 -05:00

Merge pull request #71 from nickbroon/master

Allow connection to external LDAP server
This commit is contained in:
sebu77 2015-11-09 14:47:02 +01:00
commit 684ac3e685
2 changed files with 5 additions and 1 deletions

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

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