> And so that leads to the need for checks to see what kind of object we have > the cursor currently positioned under: > isEntry() > isReferral() > isIntermediate() > This is probably best. I agree with Kiran that keeping around referral > objects and returning them in the end is not good from a memory perspective. > But if I remember correctly according to the protocol, an LDAP server does > this automatically: meaning it's supposed to return the referrals at the end > after returning regular entries. > Someone please let me know if this is the case. Have not had the time to
>From http://tools.ietf.org/html/rfc4511#section-4.5.2 : "The SearchResultEntry and SearchResultReference messages may come in any order".
