On 14/12/05 8:33, Kala B <[EMAIL PROTECTED]> wrote: > 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?
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