Project

General

Profile

Bug #6405

Unable to authenticate with UCNRS referral account

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

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

0%

Estimated time:
Bugzilla-Id:

Description

History

#1 Updated by ben leinfelder over 5 years ago

  • Assignee set to Jing Tao
  • Description updated (diff)

#2 Updated by Jing Tao over 5 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.

Also available in: Atom PDF