From: Chris R. <chr...@me...> - 2001-04-23 16:38:53
|
Chris Ridd <chr...@me...> wrote: > Roland Stigge <rol...@ep...> wrote: >> Hi! >> >> Graham Barr wrote: >>> Ah, OK. Try this patch to Net::LDAP::Search >> >> OK, let's see... >> >> this code: >> ----- >> @referrals = $mesg->referrals; >> foreach $ref (@referrals) { >> print "Referral: ",$ref,"\n"; >> } >> >> @references = $mesg->references; >> foreach $ref (@references) { >> print "Reference: ",$ref,"\n"; >> } >> ----- >> >> produces: >> ----- >> Reference: ldap://deledda/c=us,o=epigenomics >> ----- >> >> So what's the difference between reference and referral? > > A referral is returned when the *entire* operation must be resent to > another server. > > A continuation reference is returned when *part* of the operation must be > resent to another server. See RFC 2251 section 4.5.3 for more details. Cheers, Chris |