Project

General

Profile

Actions

Bug #6405

closed

Unable to authenticate with UCNRS referral account

Added by ben leinfelder over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:

Description

Actions #1

Updated by ben leinfelder over 10 years ago

  • Description updated (diff)
  • Assignee set to Jing Tao
Actions #2

Updated by Jing Tao over 10 years ago

  • Status changed from New to Resolved

The issue was not in the authentication. It was in the method getUserInfo. In the getUserInfo method, it used a filter to combine the uid and organization. This part of code is not necessary since the search base is the dn. Moreover, this logical was overwritten by the assigning the filter by 'uid=user id'.

However, this part of code had an issue - it assumed the user dn should have a "," after "o=" if there is an "o=" in the dn. Our alias handing code dereferences the uid=testreferral,o=UCNRS,dc=ecoinformatics,dc=org to the uid=testreferral,ou=people,o=ucnrs.org.
So even though the dereferenced user dn has "o=", but after "o=" there is no ",". So it broke the code.

After i removed this part code, the junit test works.

Actions

Also available in: Atom PDF