Actions
Bug #5621
openLDAP + User Groups authentication plugin not working after upgrade to 4.19.x
Status:
Resolved
Priority:
Urgent
Assignee:
-
Category:
-
Target version:
-
Start date:
15.06.2020
Due date:
% Done:
0%
Estimated time:
Sorting:
Commit Number:
Affected Version:
Description
After upgrading our RhodeCode EE server to 4.19.3, the LDAP + User Groups authentication plugin no longer works for us. I get "invalid username/password" errors when trying to log in with an LDAP account. If I switch the server to the regular LDAP plugin, it works fine with the same settings.
The problem appears to have first occurred in 4.19.0. I tested this by updating a copy of our server from 4.18.3 (where the LDAP + Groups authentication plugin worked) to 4.19.0 (where it did not).
I see this error in the log file when the authentication failure occurs:
2020-06-14 22:24:16.746 [15542] INFO [rhodecode.authentication.base] Authenticating user `mdavis` using egg:rhodecode-enterprise-ee#ldap_group plugin
2020-06-14 22:24:16.776 [15542] ERROR [rhodecode.rc_auth_plugins.auth_ldap_group] Other exception
Traceback (most recent call last):
File "rc_auth_plugins/auth_ldap_group.py", line 835, in rc_auth_plugins.auth_ldap_group.RhodeCodeAuthPlugin.auth
File "rc_auth_plugins/auth_ldap_group.py", line 295, in rc_auth_plugins.auth_ldap_group.AuthLdap.authenticate_ldap
AttributeError: 'AuthLdap' object has no attribute 'BASE_DN'
2020-06-14 22:24:16.783 [15542] WARNI [rhodecode.model.validators] user `mdavis` failed to authenticate
Actions