Project

General

Profile

Actions

Defect #32470

closed

LDAP authentication is broken due to r18692

Added by Go MAEDA over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Urgent
Category:
LDAP
Target version:
-
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

Also available in: Atom PDF