On 16/12/03 7:25 pm, Graham Barr <[EMAIL PROTECTED]> wrote: > It came up recently. My suggestion is that the user should be able to > register a callback with Net::LDAP that Net::LDAP will call when it > needs a connection to a different server. It would pass the URL details > from the referral and expect a Net::LDAP object back, which it would > then send the request to.
What problem does that solve though? The calling script still has to manage connections (reusing where possible), still has to figure out how to connect and bind, still has to check for referral loops, and still has to figure out when to close any opened connections. Checking for referral loops could be done before calling your callback, but the rest of it still seems as "messy" as the existing API. Cheers, Chris
