mirror of
https://git.cloudron.io/cloudron/syncthing-app
synced 2025-11-05 00:52:34 +00:00
Remove ldap auth
syncthing is fundamentally a single user app and it's confusing that one can LDAP login giving the impression it is somehow multi-user.
This commit is contained in:
14
start.sh
14
start.sh
@@ -12,22 +12,12 @@ if [ ! -f /app/data/config/config.xml ]; then
|
||||
/app/code/syncthing --generate="/app/data/config"
|
||||
fi
|
||||
|
||||
cat >/run/ldap.conf <<EOF
|
||||
ldap_server cloudron {
|
||||
url ${LDAP_URL}/${LDAP_USERS_BASE_DN}?username;
|
||||
binddn ${LDAP_BIND_DN};
|
||||
binddn_passwd ${LDAP_BIND_PASSWORD};
|
||||
group_attribute ${LDAP_GROUPS_BASE_DN};
|
||||
group_attribute_is_dn on;
|
||||
require valid_user;
|
||||
}
|
||||
EOF
|
||||
|
||||
# Set the listenAddress and the gui enabled to make sure user doesnt lock themselves out by accident.
|
||||
sed -e 's,<listenAddress>.*</listenAddress>,<listenAddress>tcp://:22000</listenAddress>,' -i /app/data/config/config.xml
|
||||
sed -e 's,<gui .*>,<gui enabled="true" tls="false" debugging="false">,' -i /app/data/config/config.xml
|
||||
|
||||
chown -R cloudron:cloudron /app/data/config /app/data
|
||||
|
||||
exec busybox init
|
||||
echo "=> Starting syncthing"
|
||||
exec /usr/local/bin/gosu cloudron:cloudron /app/code/syncthing -gui-address=0.0.0.0:3000 -home=/app/data/config -no-browser
|
||||
|
||||
|
||||
Reference in New Issue
Block a user