On 22/12/03 4:01 pm, GuRU <[EMAIL PROTECTED]> wrote: > Peter Marschall wrote: >> Hi, > Hello Peter, > >> >> On Saturday 20 December 2003 10: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. >>> >>> However my script works if I do >>> >>> my $ldap = Net::LDAP->new($ldaphost,version => 2) >>> >>> but fails if we use the default version => 3. >> >> >> Does the server you connect to support LDAPv3 ? > I may be mistaken, but I beleive it does. It's running on a debian > linux box > > ldap-master:openldap# apt-cache showpkg libldap2 > Package: libldap2 > Versions: > 2.0.23-6.3(/var/lib/apt/lists/debian.nscl.msu.edu_debian_dists_stable_main_bin > ary-i386_Packages) > > (/var/lib/apt/lists/security.debian.org_dists_stable_updates_main_binary-i386_ > Packages)(/var/lib/dpkg/status)
Sorry, that doesn't help... Also presumably you want to check what server's installed (and what version of it) instead of what version of libldap's installed? > If not then that is the problem :) Of course, setting the LDAP version in the constructor doesn't actually affect the creation of the connection. All it affects is the LDAP object's idea of what protocol version's being used, and what version gets sent in any subsequent bind operation. Cheers, Chris