Graham Barr wrote:On 20 Dec 2003, at 09:46, GuRU wrote:Nope this did not work either :(. Our script had no problem working with version 0.25.I've been following this thread as I'm having the same problem with search.Please re-try with version 0.31 which was released on Jan 1. You can get it from
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.
http://search.cpan.org/dist/perl-ldap/
$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; }
Well there is very little error checking in there :)
But where exactly is it failing ? What method is returning that '81' value ?
The more detail you can give, the more likely we are to find the issue.
However my script works if I do
my $ldap = Net::LDAP->new($ldaphost,version => 2)
but fails if we use the default version => 3.
Just saying something fails, is less than helpful. How does it fail ? Where does it fail ?
Graham.