More like this:

        use Net::LDAP::Constant;
        if ( $mesg->code == LDAP_REFERRAL ) {
                foreach my $ref ( $mesg->referrals ) {
                        .
                        .
                        .

Can Net::LDAP follow referrals automagically?  If not why not?

Thanks,

John Barrett
BellSouth

-----Original Message-----
From: Mark Merchant [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 31, 2005 2:51 PM
To: Graham Barr
Subject: Re: result code 10

yes, that's what i'm looking for. would the code look something like
this:

if ( $mesg->{'resultCode'} == 10 ) {
     print "referred to: ", $mesg->{'referrals'}
}

thx.
MM

On Wed, 2005-08-31 at 13:54, Graham Barr wrote:

> On Wed, August 31, 2005 12:29 pm, Mark Merchant said:
>
>> i'm writing an app which interfaces with an active directory. during
>> the query i'm getting a resultCode=10.
>>
>> what is that? ( a referral? ), and what do i do about it?
>>
>
> The message object returned from the Net::LDAP method provides
> several methods for getting errors strings and names.
>
> There is also Net::LDAP::Constant which has a definition of
> errors in its POD.
>
> http://search.cpan.org/perldoc?Net::LDAP::Constant
>
>
> Graham.
>
>
>




*****
"The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential, proprietary, and/or privileged 
material.  Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon, this information by persons or entities other 
than the intended recipient is prohibited.  If you received this in error, 
please contact the sender and delete the material from all computers."  118

Reply via email to