On Thu, 8 Jul 2004, Leif Johansson wrote:

> Larry Lile wrote:
> > 
> > I seem unable to find any combination of Authen::SASL::Cyrus
> > and Net::LDAP that work together.  After googling around the
> > net for several days it seems this is a fairly common problem.
> > 
> > Can we work through this, I can't imagine that it's that big
> > of a problem.  I just don't have enough knowledge of sasl and
> > perl XS to fix it myself.
> > 
> 
> That is a correct observation. The quick (but not satisfactory)
> fix is to disable channel bindings by commenting out the following
> lines in Net/LDAP.pm
> 
>      # Tell SASL the local and server IP addresses
>      $sasl_conn->property(
>        sockname => $ldap->{net_ldap_socket}->sockname,
>        peername => $ldap->{net_ldap_socket}->peername,
>      );

I had looked at that and tried commenting them out but that
resulted in:

bass [~/ncvs/systems/led](SHARK)(5)> /opt/perl/bin/perl test 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.
 [ ... really long hang ....] 
I/O Error   at test line 13, <DATA> line 283.

> The problem lies with Authen::SASL::Cyrus which does not correctly
> set the sockname and peername - they are treated as strings and
> not as in_addrs

Okay, maybe I can look into that. 

-- 
Larry

Reply via email to