You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to test extension, not working out of the box as expected, got error when entering intentionally wrong credentials
flask_ldapconn\__init__.py", line 162, in authenticate
username = response[0]['dn']
KeyError: 'dn'
Slight code changing required. In line 162 of __init__.py except (LDAPInvalidDnError, LDAPInvalidFilterError, IndexError):
to empty except:
gave correct error handling! Hope this will help to someone.
The text was updated successfully, but these errors were encountered:
netvoip
changed the title
Fix for username = response[0]['dn'] error
Fix for username = response[0]['dn'] KeyError
Jul 8, 2019
Trying to test extension, not working out of the box as expected, got error when entering intentionally wrong credentials
Slight code changing required. In line 162 of __init__.py
except (LDAPInvalidDnError, LDAPInvalidFilterError, IndexError):
to empty
except:
gave correct error handling! Hope this will help to someone.
The text was updated successfully, but these errors were encountered: