From: Graham B. <gb...@po...> - 2000-05-08 18:51:26
|
The problem is that on Solaris recv will not always return the address of the sender if the socket is connected. The fix for this is that in Net::LDAP where is uses asn_recv it should have a defined check on the result. The CVS respository on sourceforge has this fix. There is also a patch at http://download.sourceforge.net/perl-ldap Graham. On Mon, May 08, 2000 at 06:19:27PM +0100, Steve Haslam wrote: > On Mon, May 08, 2000 at 06:04:40PM +0100, Steve Haslam wrote: > > On Mon, May 08, 2000 at 05:50:47PM +0100, Steve Haslam wrote: > > > 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. > > > 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 > > > > Hm, using asn_read() instead of asn_recv() in Net/LDAP.pm seems to fix > > it. Maybe (Solaris 7|my Perl installation) doesn't like using > > MSG_PEEK? > > Attached is a version of t/07io.t from Convert::ASN1 that fails on my > machine until I change asn_recv to asn_read for the TCP socket... > > SRH > -- > Steve Haslam, Production Engineer, Excite UK ste...@ex... > there is no life worth living when you can't explore the mind > and all the losing souls will stay behind remaining blind |