[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
(ITS#5879) LDAPConnection doesn't always uses default constraints for referral handling
Full_Name: Maurice Smulders
Version: novell-jldap-devel-2008.03.01
OS:
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (208.230.118.253)
using
I created a LDAPBindHandler, and then called the read api as follows:
ldapEntry = ldapConnection.read(userCtx.toString(),searchConstraints);
No default constraints are set on the connection.
The referral handler never calls into my bindhandler. The workaround currently
is to set a default bind handler. Fix looks to be:
com/novell/ldap/LDAPConnection.java:3770:
private ReferralInfo getReferralConnection( String[] referrals)
throws LDAPReferralException
Change to:
private ReferralInfo getReferralConnection( String[] referrals,
LDAPConstraints cons)
throws LDAPReferralException
And down below:
change
LDAPReferralHandler rh = defSearchCons.getReferralHandler();
to:
if (cons == null)
{
cons = defSearchCons;
}
LDAPReferralHandler rh = cons.getReferralHandler();
This should then support passed in LDAPConstraints()