From: Graham B. <gb...@po...> - 2002-02-27 22:35:50
|
It seems very odd that $ldap should become undef after calling a method on it. Net::LDAP could not do that if it tried (if $ldap was lexical), which means maybe you have a perl config where Net::DAP tickles a bug. Graham. On Wed, Feb 27, 2002 at 05:22:12PM -0500, Michael P. Soulier wrote: > > Oh, and I just tried it with v5.005_02, v5.6.0, and v5.6.1. It only works > with v5.005_02. > > Mike > > On Wed, Feb 27, 2002 at 04:47:23PM -0500, Soulier, Michael [SKY:QX41:EXCH] wrote: > > > > Well, back to Net::LDAPapi I guess... Unless anyone has any ideas. > > > > Mike > > > > On Tue, Feb 26, 2002 at 11:35:55AM -0500, Soulier, Michael [SKY:QX41:EXCH] wrote: > > > Hello, > > > > > > I'm currently trying to use the perl-ldap modules, and I'm running into a > > > problem. I have three different installations, all version 0.25. Two of them > > > are on HP-UX 10.20 with Perl 5.005_02 and Perl 5.6. The last is Linux with > > > Perl 5.6. > > > On HP-UX with Perl 5.005_02, it works fine. Unfortunately, in both cases > > > with Perl 5.6, the bind is returning nothing. > > > > > > main::(-e:1): 0 > > > DB<1> use Net::LDAP > > > > > > DB<2> $ldap = Net::LDAP->new('ldap-carling2.ca.nortel.com') > > > > > > DB<3> x $ldap > > > 0 Net::LDAP=HASH(0x84b530c) > > > 'net_ldap_async' => 0 > > > 'net_ldap_debug' => 0 > > > 'net_ldap_host' => 'ldap-carling2.ca.nortel.com' > > > 'net_ldap_resp' => HASH(0x81e9f70) > > > empty hash > > > 'net_ldap_socket' => IO::Socket::INET=GLOB(0x84b7184) > > > -> > > > FileHandle({*Symbol::GEN0}) => fileno(3) > > > 'net_ldap_version' => 2 > > > DB<4> $mesg = $ldap->bind > > > > > > DB<5> x $mesg > > > 0 undef > > > DB<6> x $ldap > > > 0 undef > > > > > > With the Perl 5.005_02 build on HP-UX, it works fine. > > > > > > Any ideas? > > > > > > Mike > > > > > > -- > > > Michael P. Soulier, QX41, SKY Tel: 613-765-4699 (ESN: 39-54699) > > > Optical Networks, Nortel Networks, SDE Pegasus > > > "...the word HACK is used as a verb to indicate a massive amount > > > of nerd-like effort." -Harley Hahn, A Student's Guide to Unix > > > > -- > > Michael P. Soulier, QX41, SKY Tel: 613-765-4699 (ESN: 39-54699) > > Optical Networks, Nortel Networks, SDE Pegasus > > "...the word HACK is used as a verb to indicate a massive amount > > of nerd-like effort." -Harley Hahn, A Student's Guide to Unix > > -- > Michael P. Soulier, QX41, SKY Tel: 613-765-4699 (ESN: 39-54699) > Optical Networks, Nortel Networks, SDE Pegasus > "...the word HACK is used as a verb to indicate a massive amount > of nerd-like effort." -Harley Hahn, A Student's Guide to Unix > |