Re: perl-ldap-0.52 breaks Amavis

Quanah Gibson-Mount <[email protected]> Fri, 25 Jan 2013 13:50:03 -0800
Newsgroups gmane.comp.lang.perl.modules.ldap,gmane.mail.virus.amavis.user
Message-ID <7943BFA0A842D5E674F31A21@[192.168.1.42]>
--On Friday, January 25, 2013 1:04 PM -0800 Quanah Gibson-Mount 
<[email protected]> wrote:

> --On Friday, January 25, 2013 12:53 PM -0800 Quanah Gibson-Mount
> <[email protected]> wrote:
>
>> The changes in inet6 handling somewhere between Net::LDAP 0.44 and
>> Net::LDAP 0.52 breaks Amavis' ability to talk to LDAP.
>
> The problem is specifically this bit:
>
>   my $domain = $arg->{inet4} ? AF_INET : ($arg->{inet6} ? AF_INET6 :
> AF_UNSPEC);
>
> ...
>     Domain     => $domain,
> ...
>
> If I comment out these two lines, connections work as expected.

With further investigation, I believe the fault here is with Amavis. 
"inet6" for Net::LDAP means ipv6 only (as of 0.52 anyhow).

--Quanah

--

Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration