authelia/internal/authentication
Clément Michaud 82d8e1d57a
[BUGFIX] Fix crash when no emails or groups are retrieved from LDAP. (#651)
* [BUGFIX] Fix crash when no emails or groups are retrieved from LDAP.

If group or email attribute configured by user in configuration is not
found in user object the list of attributes in LDAP search result is empty.
This change introduces a check before accessing the first element of the
list which previously led to out of bound access.

Fixes #647.

* [MISC] Change log level of LDAP connection creation to trace.
2020-02-27 23:21:07 +01:00
..
const.go Introduce hasU2F and hasTOTP in user info. 2019-12-08 14:31:48 +01:00
file_user_provider.go Add early checks for user hashes. 2019-12-28 09:08:54 +01:00
file_user_provider_test.go Add early checks for user hashes. 2019-12-28 09:08:54 +01:00
ldap_connection_factory.go Add support for LDAP over TLS. 2019-12-06 21:33:47 +01:00
ldap_connection_factory_mock.go Add support for LDAP over TLS. 2019-12-06 21:33:47 +01:00
ldap_user_provider.go [BUGFIX] Fix crash when no emails or groups are retrieved from LDAP. (#651) 2020-02-27 23:21:07 +01:00
ldap_user_provider_test.go [BUGFIX] Fix crash when no emails or groups are retrieved from LDAP. (#651) 2020-02-27 23:21:07 +01:00
password_hash.go Improve logs of password hashing to help troubleshoot issues. 2019-12-28 09:08:54 +01:00
password_hash_test.go Improve logs of password hashing to help troubleshoot issues. 2019-12-28 09:08:54 +01:00
types.go Move source code into internal directory to follow standard project layout. 2019-11-17 16:30:33 +01:00
user_provider.go Move source code into internal directory to follow standard project layout. 2019-11-17 16:30:33 +01:00