directory-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Couchman <>
Subject Questions about Referrals
Date Sun, 21 Jan 2018 21:25:30 GMT
Hey, there, everyone,
Over at the ASF Guacamole project we're trying to migrate to the Apache
Directory API from the legacy/unmaintained Novell Java API.  We're most of
the way there, but trying to deal correctly with referral following in the
Apache API, so I have a couple of questions regarding how the Apache
Directory Client functions...

First, if I want to following referrals when retrieving search results, is
it as simple as doing:


(where request is an instance of SearchRequestImpl) and the client
automatically follows the referrals?  Or do I need to implement the
referral following manually by detecting if a referral occurs and then
writing the code to follow that referral?

Second, with regard to following referrals, assuming the above works to
just make the client follow referrals, is there any way to limit the number
of hops the client takes in following referrals?  In the Novell API you can
set a variety of controls, and one of them is the maximum number of "hops"
taken when following referrals, which prevents the client from getting into
a bad situation, like a recursive referral or an endless loop of
referrals.  I do not see anything similar in the Apache API for limiting -
am I missing it?

Finally, assuming there isn't anything built-in to the API to limit
referral hops, I see that there is a getReferralLength() method in the
ReferralImpl class, but it's unclear what is meant by "referral length?"
Is this referring to the number of hops, or some other "length" associated
with referrals?



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message