Write AUTH_LDAP_GLOBAL_OPTIONS as array.

This is required for connecting to a LDAPS server without validating certificators:
```
SETTING_AUTH_LDAP_GLOBAL_OPTIONS: "{ ldap.OPT_X_TLS_REQUIRE_CERT: ldap.OPT_X_TLS_NEVER }"
```

Using `SETTING_AUTH_LDAP_CONNECTION_OPTIONS` doesn't work.
This commit is contained in:
Lorenzo Milesi
2021-12-08 00:24:33 +01:00
committed by GitHub
parent ee46776043
commit 4b20fa5e1e

View File

@@ -267,6 +267,7 @@ zulipConfiguration() {
fi
# Zulip settings.py / zproject specific overrides here
if [ "$setting_key" = "AUTH_LDAP_CONNECTION_OPTIONS" ] || \
[ "$setting_key" = "AUTH_LDAP_GLOBAL_OPTIONS" ] || \
[ "$setting_key" = "AUTH_LDAP_USER_SEARCH" ] || \
[ "$setting_key" = "AUTH_LDAP_GROUP_SEARCH" ] || \
[ "$setting_key" = "AUTH_LDAP_REVERSE_EMAIL_SEARCH" ] || \