I agree with Chris. Auto-chasing referrals at the API level can cause a
lot of headaches and problems.
Mark
On Wed, 18 Oct 2000, Chris Ridd wrote:
> Graham Barr <gb...@po...> wrote:
> > On Tue, Oct 17, 2000 at 05:27:49PM -0700, Robbie Allen wrote:
> >> Can Net::LDAP automatically chase referrals? Sample code?
> >
> > Not yet. Currently you have to follow them yourself. You can
> > get them with
> >
> > $mesg = $ldap->search( ... );
> > @referrals = $mesg->referrals;
> >
> > Graham.
>
> I'm not sure Net::LDAP should ever automatically follow referrals - not
> knowing what authentication to use is a pretty major problem. Deciding
> which one to follow if there are several for the same point is another
> (equally critical in some environments) problem.
>
> Referral following is something that needs to be addressed in the
> application (eg GUI) rather than down at the API level. IMHO of course.
>
> Cheers,
>
> Chris
>
|