Actions
Defect #32470
closedLDAP authentication is broken due to r18692
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
r18692 changed AuthSourceLdap.get_attr
method to private, but there are some codes that call AuthSourceLdap.get_attr. As a result, those codes raise NoMethodError and users cannot sign in with LDAP authentication.
$ fgrep --exclude-dir .svn -rn AuthSourceLdap.get_attr . ./app/models/auth_source_ldap.rb:106: attrs[:login] = AuthSourceLdap.get_attr(entry, self.attr_login) ./app/models/auth_source_ldap.rb:200: :firstname => AuthSourceLdap.get_attr(entry, self.attr_firstname), ./app/models/auth_source_ldap.rb:201: :lastname => AuthSourceLdap.get_attr(entry, self.attr_lastname), ./app/models/auth_source_ldap.rb:202: :mail => AuthSourceLdap.get_attr(entry, self.attr_mail),
Reverting r18692 should fix this issue (I have not yet tested it).
Actions