Fix LDAP errors

This commit is contained in:
Ozzieisaacs
2020-11-22 11:19:14 +01:00
parent fb1e763bbe
commit f620d4a9ca
4 changed files with 12 additions and 11 deletions

View File

@ -38,7 +38,7 @@ def init_app(app, config):
app.config['LDAP_HOST'] = config.config_ldap_provider_url
app.config['LDAP_PORT'] = config.config_ldap_port
app.config['LDAP_CUSTOM_OPTIONS'] = {pyLDAP.OPT_REFERRALS, 0}
app.config['LDAP_CUSTOM_OPTIONS'] = {pyLDAP.OPT_REFERRALS: 0}
if config.config_ldap_encryption == 2:
app.config['LDAP_SCHEMA'] = 'ldaps'
else: