mirror of
https://git.cloudron.io/cloudron/gitea-app.git
synced 2024-11-23 00:21:00 +00:00
Fix username login
This commit is contained in:
parent
ecfb7a81ea
commit
d609d4905c
1 changed files with 1 additions and 1 deletions
2
start.sh
2
start.sh
|
@ -13,7 +13,7 @@ setup_ldap_source() {
|
||||||
|
|
||||||
# id, type, name, is_actived, cfg, allow_auto_register, created, updated
|
# id, type, name, is_actived, cfg, allow_auto_register, created, updated
|
||||||
if mysql -u"${MYSQL_USERNAME}" -p"${MYSQL_PASSWORD}" -h mysql --database="${MYSQL_DATABASE}" \
|
if 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\":\"${LDAP_SERVER}\",\"Port\":${LDAP_PORT},\"UseSSL\":false,\"UserBase\":\"${LDAP_USERS_BASE_DN}\",\"AttributeUsername\":\"uid\",\"AttributeName\":\"\",\"AttributeSurname\":\"\",\"AttributeMail\":\"mail\",\"Filter\":\"(\\\\u0026(objectClass=user)(username=%s))\",\"AdminFilter\":\"(memberof=cn=admins,${LDAP_GROUPS_BASE_DN})\",\"Enabled\":true}','2015-06-24 17:14:12','2015-06-24 17:25:03');"; then
|
-e "REPLACE INTO login_source VALUES (1,2,'cloudron',1,'{\"Name\":\"cloudron\",\"Host\":\"${LDAP_SERVER}\",\"Port\":${LDAP_PORT},\"UseSSL\":false,\"UserBase\":\"${LDAP_USERS_BASE_DN}\",\"AttributeUsername\":\"username\",\"AttributeName\":\"displayname\",\"AttributeSurname\":\"\",\"AttributeMail\":\"mail\",\"Filter\":\"(\\\\u0026(objectClass=user)(username=%s))\",\"AdminFilter\":\"(memberof=cn=admins,${LDAP_GROUPS_BASE_DN})\",\"Enabled\":true}','2015-06-24 17:14:12','2015-06-24 17:25:03');"; then
|
||||||
echo "LDAP Authentication Setup"
|
echo "LDAP Authentication Setup"
|
||||||
else
|
else
|
||||||
echo "Failed to setup LDAP authentication"
|
echo "Failed to setup LDAP authentication"
|
||||||
|
|
Loading…
Reference in a new issue