Bug#486698: Authen::SASL::Cyrus produces bogus SIGPIPE

Russ Allbery rra at debian.org
Tue Jun 17 19:10:46 UTC 2008


Wouter Verhelst <wouter at debian.org> writes:

> Package: libauthen-sasl-cyrus-perl
> Version: 0.13-server-3+b1
> Severity: important
>
> Hi,
>
> The following script:
>
> use Net::LDAP;
> use Authen::SASL qw(Cyrus);
> $SIG{'PIPE'} = 'IGNORE';
> $ldap = Net::LDAP->new('ldap://samba.grep.be/') or die $!;
> $sasl = Authen::SASL->new(mech => "GSSAPI");
> $ldap->bind('uid=wouter,ou=People,dc=grep,dc=be', sasl => $sasl);
> $res = $ldap->search(base => 'ou=People,dc=grep,dc=be', filter => "(&(objectClass=posixUser)(uid=wouter))");
> $res->code && die $res->error;
> print "success\n";
>
> fails with 
>
> Broken pipe at test.pl line 8, <DATA> line 253.
>
> If I change qw(Cyrus) to qw(Perl), everything works perfectly.

I'm not sure that there's enough information here to figure out what's
wrong.  You're getting a broken pipe error when writing to your LDAP
server, which appears to be sensitive to what SASL implementation you're
using.  What does the LDAP server say?  Does strace show the broken pipe
error?  What is the client trying to send to the server when it gets the
broken pipe?

-- 
Russ Allbery (rra at debian.org)               <http://www.eyrie.org/~eagle/>





More information about the pkg-perl-maintainers mailing list