Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Perl-ldap support for LDAP referrals

29 views
Skip to first unread message

Kala B

unread,
Dec 14, 2005, 3:33:39 AM12/14/05
to perl...@perl.org
Hi,
Does perl-ldap support referral chasing? For example, If I make a call to
say Net::LDAP::modify API, to modify a dn and if the LDAP server returns a
referral, will it be automatically taken care of - or should I manually do
the referral handling?

Thanks in advance,
Kala B.

Chris Ridd

unread,
Dec 14, 2005, 4:33:58 AM12/14/05
to Kala B, perl...@perl.org

You need to handle that case yourself :-(

The problem in general with automatically chasing referrals is how to
authenticate to the other server. Net::LDAP doesn't cache your bind
credentials (nor should it) so it isn't possible to resend them.

A very important point is that you might not even want to, or be able to,
use the same credentials with the other server. This is particularly
important if you're trying to modify something.

We've talked about adding some sort of callback to control referral chasing,
but nothing's come of it as far as I can remember.

On the plus side, you can use the URI class to split up the referral URI
returned into the bits required to pass into Net::LDAP->new().

> Thanks in advance,
> Kala B.

Cheers,

Chris


0 new messages