Fix #1311 (Enable LDAP Anonymous Login)

This commit is contained in:
Ozzieisaacs
2020-04-18 11:48:34 +02:00
parent 195845ab0c
commit 06fde4fcd0
20 changed files with 1462 additions and 1173 deletions
+1 -1
View File
@@ -285,7 +285,7 @@ def import_ldap_users():
showtext = {}
try:
new_users = services.ldap.get_group_members(config.config_ldap_group_name)
except (services.ldap.LDAPException, TypeError, AttributeError) as e:
except (services.ldap.LDAPException, TypeError, AttributeError, KeyError) as e:
log.debug(e)
showtext['text'] = _(u'Error: %(ldaperror)s', ldaperror=e)
return json.dumps(showtext)