From: Steve H. <ste...@ex...> - 2000-05-08 16:51:13
|
Hi, I'm having trouble with Net::LDAP 0.16 on Solaris (SunOS box 5.7 Generic_106541-02 sun4u sparc SUNW,Ultra-5_10). It appears to compile fine, but I can't get the test suite to pass. I did some experimenting and got this (sorry about the hideous test command!): bash$ perl5.00503 -Iblib/lib -MNet::LDAP -MNet::LDAP::Util -MNet::LDAP::LDIF -e '$ldap = Net::LDAP->new(q[ldap0.london.excite.com], debug => 3); $br = $ldap->bind; $br->code && die q[bind: ].Net::LDAP::Util::ldap_error_text($br->code); $sr = $ldap->search(filter => q[(uid=shaslam)], base => q[ou=People,o=Excite,c=GB], attrs => [qw(cn)]); $sr->code && die q[search: ].Net::LDAP::Util::ldap_error_text($sr->code); $count = $sr->count; print qq[$sr, $count results\n]; $ldif = new Net::LDAP::LDIF(\*STDOUT, q[w]); $ldif->write($sr->entries)' Net::LDAP=HASH(0xc0a44) sending: 30 0C 02 01 01 60 07 02 01 02 04 00 80 00 __ __ 0....`........ bind: Server encountered an internal error ldap0.london.excite.com is running OpenLDAP 1.2.10 Similarly, when I try to run t/50populate, I get: 1..44 ok 1 #1 not ok 2 ok 3 ok 4 #1 which afaict means essentially the same thing. I get just the same results with Perl 5.6.0 as with 5.00503. Net::LDAP 0.13 works fine. On my Linux machine (Linux hell 2.2.14 #1-DellLatCPi Sun Mar 19 17:26:31 GMT 2000 i686 unknown) the same command gives: Net::LDAP=HASH(0x80cb8fc) received: 30 0C 02 01 01 61 07 0A 01 00 04 00 04 00 __ __ 0....a........ Net::LDAP=HASH(0x80cb8fc) sending: [more stuff...] instead of the bind error. Has anyone else had this? I don't know enough about the innards of Net::LDAP to know precisely where to look, but it returning an internal server error before receiving any data suggests there's a problem in the receiver select() loop? SRH -- Steve Haslam, Production Engineer, Excite UK ste...@ex... father, we're so close to death, you told us this time would come we were full of scorn, now we see the wrong deeds bloom you told us that we were wrong |