Project

General

Profile

Actions

Bug #3352

closed

User at referral ldap server couldn't login if another referral server is down

Added by Jing Tao over 16 years ago. Updated over 16 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
metacat
Target version:
Start date:
06/02/2008
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
3352

Description

Chris reported that the user at PISCO ldap server couldn't login when a referral server, LTER , is down. We fixed a bug that user at NCEAS couldn't login when a referral server is down.

Actions #1

Updated by Jing Tao over 16 years ago

This bug took a longer time than i thought to be fixed.
First I needed to installed two ldap servers and configured them. They are in dev and my local machine now.
The problem was in getIdentifyingName in AuthLdap class. During the "catch ReferralException" clause, if there is a problem in referral servers, this statement:
if (moreReferrals) {
sctx = (DirContext) e.getReferralContext();
}
will be thrown an exception and jumped out the loop which goes through the every referral servers.

First i thought added a try-catch clause will fix the bug. However, it didn't.
It should add a statement - e.skipReferral(), the program could work.

I also found in getGroups method had some problem and it was resolved too.

I tested in test servers and it seems the code working.

Actions #2

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 3352

Actions

Also available in: Atom PDF