logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: following referrals: msg#00066

Subject: Re: following referrals


No, because lots of stuff is hidden. Consider what you have todo today

  $mesg = $ldap->delete(@args);
  handle_referal($mesg) if (... check for referral ..);

  vs

  $ldap = Net::LDAP-.new(..., referral_connect => \&my_connect)

  $mesg= $ldap->delete(@args);

Where referrals are done behind the scenes using &my_connect to create the connection

Graham.


Would my_connect be a Net::LDAP object? or would it be a new object such as the one below:

   $my_connect = Net::LDAP::Referrals->new(....);

where $ldap->delete(...) would call some function to get the Net::LDAP object if a referral was returned:

   $ldapr = $my_connect->get_ldap_obj(@referrals);







Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>