Use ldap addon env vars

This commit is contained in:
Johannes Zellner 2015-06-24 22:31:09 +02:00
parent 802f014d9f
commit 4c63221496

View file

@ -79,7 +79,7 @@ sed -e "s/##HOSTNAME/${fqdn}/g" \
# id, type, name, is_actived, cfg, allow_auto_register, created, updated
mysql -u"${MYSQL_USERNAME}" -p"${MYSQL_PASSWORD}" -h mysql --database="${MYSQL_DATABASE}" \
-e "REPLACE INTO login_source VALUES (1,2,'cloudron',1,'{\"Name\":\"cloudron\",\"Host\":\"172.17.42.1\",\"Port\":3002,\"UseSSL\":false,\"BaseDN\":\"ou=users,dc=cloudron\",\"AttributeUsername\":\"uid\",\"AttributeName\":\"\",\"AttributeSurname\":\"\",\"AttributeMail\":\"mail\",\"Filter\":\"(\\\\u0026(objectClass=user)(uid=%s))\",\"MsAdSAFormat\":\"cn=%s,ou=users,dc=cloudron\",\"Enabled\":true}',0,'2015-06-24 17:14:12','2015-06-24 17:25:03');"
-e "REPLACE INTO login_source VALUES (1,2,'cloudron',1,'{\"Name\":\"cloudron\",\"Host\":\"${LDAP_SERVER}\",\"Port\":${LDAP_PORT},\"UseSSL\":false,\"BaseDN\":\"${LDAP_USERS_BASE_DN}\",\"AttributeUsername\":\"uid\",\"AttributeName\":\"\",\"AttributeSurname\":\"\",\"AttributeMail\":\"mail\",\"Filter\":\"(\\\\u0026(objectClass=user)(uid=%s))\",\"MsAdSAFormat\":\"cn=%s,${LDAP_USERS_BASE_DN}\",\"Enabled\":true}',0,'2015-06-24 17:14:12','2015-06-24 17:25:03');"
supervisorctl restart gogs