On Thu, 8 Jul 2004, Quanah Gibson-Mount wrote:
>
>
> --On Thursday, July 08, 2004 5:43 PM -0700 Larry Lile
> <[EMAIL PROTECTED]> wrote:
>
> > CPAN:
> > Use of uninitialized value in print at
> > /opt/perl/lib/site_perl/5.8.4/i686-linux/Authen/SASL/Cyrus/Security.pm
> > line 99, <DATA> line 283.
> > [ ... hang ... ]
> >
> > Patrick's version:
> > Use of uninitialized value in print at
> > /opt/perl/lib/site_perl/5.8.4/i686-linux/Authen/SASL/Cyrus/Security.pm
> > line 81, <DATA> line 283.
> > [ ... hang ...]
> >
> > Which apears to be an encoding failure
> >
> > sub WRITE {
> > my($ref,$string,$len) = @_;
> > my($fh, $clearbuf, $cryptbuf);
> >
> > $fh = $ref->{fh};
> > $clearbuf = substr($string, 0, $len);
> > $cryptbuf = $ref->{conn}->encode($clearbuf);
> > print $fh $cryptbuf;
> > }
> >
> > Which is the same in both code sets.
>
> 1) Make sure you have nothing commented out in Net::LDAP. ;)
Yep, just did a fresh install to double check.
>
> 2) What version of SASL are you using? I saw a problem like this when I
> didn't have Cyrus-SASL 2.2.18 everywhere.
Tried both
bass [~/ncvs/systems/led](SHARK)(72)> rpm -qa | grep -i sasl
cyrus-sasl-devel-2.1.15-8
cyrus-sasl-plain-2.1.15-8
cyrus-sasl-md5-2.1.15-8
cyrus-sasl-gssapi-2.1.15-8
cyrus-sasl-2.1.15-8
And a clean build of cyrus-sasl-2.1.18 from source
--
Larry