Graham Barr wrote:

On 20 Dec 2003, at 09:46, GuRU wrote:


Graham Barr wrote:
> On Nov 11, 2003, at 17:55, Chris Masters wrote:
>
>> I upgraded to 0.30 directly after you suggested. All
>> mails after your suggestion were refering to a 0.30
>> version installation.
>
>
> Then please add the following directly after your call to search and
> before you try to call any methods on $mesg
>
> warn "'$mesg'" unless ref($mesg);
Hello Graham,
I've been following this thread as I'm having the same problem with search.
I'm running NetBSD -current with perl 5.6.1. We're also seeing the same problem with
perl 5.8. on Debian Linux kernel 2.4.21.072103. I've upgraded Net::LDAP to 0.30,
but the problem still exists. I added the warn function and i get:


'81' at ./nis2ldap line 150.


Please re-try with version 0.31 which was released on Jan 1. You can get it from

http://search.cpan.org/dist/perl-ldap/
Nope this did not work either :(. Our script had no problem working with version 0.25.

$VERSION        = 0.25;
@ISA            = qw(Net::LDAP::Extra);
$LDAP_VERSION   = 2;      # default LDAP protocol version

with the following function

sub ldap_connect{
    my $ldap = Net::LDAP->new($ldaphost,version => 3) or die $!;
    $ldap->start_tls(verify => 'none');
    $ldap->bind($ldapbinddn, password => $ldappass);
    return $ldap;
}



Graham.



However my script works if I do


my $ldap = Net::LDAP->new($ldaphost,version => 2)

but fails if we use the default version => 3.


./i'khala



> > Graham. > >> >> >> --- Graham Barr <[EMAIL PROTECTED]> wrote: >>








Reply via email to