forked from cloudron-apps/gitea-app
Use ldap addon env vars
This commit is contained in:
parent
802f014d9f
commit
4c63221496
1 changed files with 1 additions and 1 deletions
2
start.sh
2
start.sh
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue