perl-ldap-0.52 breaks Amavis

Peter Marschall peter at adpm.de
Sat Jan 26 10:03:56 CET 2013


Hi,

On Friday, 25. January 2013, Quanah Gibson-Mount wrote:
> <quanah at zimbra.com> wrote:
> > --On Friday, January 25, 2013 12:53 PM -0800 Quanah Gibson-Mount
> > 
> > <quanah at zimbra.com> 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).

This was a change in perl-ldap 0.45 to "Make IPv6 usage more sane",
 https://rt.cpan.org/Public/Bug/Display.html?id=77458

With resolving this bug, perl-ldap switched to the "standard" of using either
IP version when no option was given, and changed the meaning of
the 'net6' option from "try IPv6" to "only use IPv6".

This is reflected in the documentation.

I see two options for amavis to fix it:
* raise the required perl-ldap version to 0.46 and remvoe "inet6 => 1"
  from the constructor fo theNet::LDAP object
* make the addition of inet6 => 1 dependent on perl-ldap's version


Best
PEter

-- 
Peter Marschall
peter at adpm.de


More information about the amavis-users mailing list