Actions
Patch #19520
openLDAP authentication exception handling
Status:
New
Priority:
Normal
Assignee:
-
Category:
LDAP
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Description
In case of problems with a domain controler used for LDAP authentication Errno::ECONNRESET exception might be thrown. However, only AuthSourceException is caugth in the account controller. Therefore an Internal error is displayed to users after their logn attempt. I'd recomend either adding another exception handling or changing to a general exception as in the attached patch.
Errno::ECONNRESET (Connection reset by peer): app/models/auth_source_ldap.rb:178:in `get_user_dn' app/models/auth_source_ldap.rb:42:in `block in authenticate' app/models/auth_source_ldap.rb:98:in `block in with_timeout' app/models/auth_source_ldap.rb:97:in `with_timeout' app/models/auth_source_ldap.rb:41:in `authenticate' app/models/user.rb:271:in `check_password?' app/controllers/account_controller.rb:186:in `authenticate_user' app/controllers/account_controller.rb:40:in `login'
Files
Actions