mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-21 16:55:10 -05:00
Merge pull request #71 from nickbroon/master
Allow connection to external LDAP server
This commit is contained in:
commit
684ac3e685
@ -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
|
||||
|
@ -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…
Reference in New Issue
Block a user