Skip to content
Snippets Groups Projects
Commit c2c8bc3f authored by Julian Rother's avatar Julian Rother
Browse files

Fix error handling of LDAP-Login, closes #223

parent 08427639
Branches
No related tags found
No related merge requests found
......@@ -126,7 +126,7 @@ if 'LDAP_HOST' in config:
conn.unbind()
return user, groups
except ldap3.core.exceptions.LDAPBindError:
pass
return None, []
def ldapget(user):
user = LDAP_USERRE.sub(r'', user.lower())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment