On 11 Dec 2003, at 20:29, D.Kreft wrote:
On Thu, 11 Dec 2003, Graham Barr did scribble:

Personally I think it is wrong for Net::LDAP to remember that. Also,
its not very generic to re-use the same credentials, the referral could
be to a different server that requires different credentials.

Hrmm...good point. I'm not sure that opportunity will present itself in our
systems...but I don't want to shoot myself in the foot by making such an
assumption. :-)


My original plan to add referral handling into Net::LDAP, that never
got implemented, was to allow the user to pass a sub ref to ->new that
would be called to create any connection.

Alternatively, and perhaps a "cooler" way to do it would be to create a new
method that one could override. My particular subclass would have something
like this:

Sure. The default method, in Net::LDAP, would be to look for the sub passed into new and call that, but if you want to sub-class you can override it. I don't think a user should be forced to sub-class just to use referrals


Graham.




Reply via email to