From 9ff11263f53b8abe7a9dd8babd3d97fe80d647cc Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 17 Aug 2015 12:31:51 -0700 Subject: [PATCH] Fix LDAP setup after https://github.com/gogits/gogs/commit/7d84d4a8f0cb30df04241f528ed74672a485274a --- start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.sh b/start.sh index fa07056..e446715 100755 --- a/start.sh +++ b/start.sh @@ -83,7 +83,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\":\"${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}',1,'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,\"UserBase\":\"${LDAP_USERS_BASE_DN}\",\"AttributeUsername\":\"uid\",\"AttributeName\":\"\",\"AttributeSurname\":\"\",\"AttributeMail\":\"mail\",\"Filter\":\"(\\\\u0026(objectClass=user)(uid=%s))\",\"Enabled\":true}',1,'2015-06-24 17:14:12','2015-06-24 17:25:03');" supervisorctl restart gogs