Quanah,

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);
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).

For the record: with amavisd-new-2.8.1 the 'inet6 => $have_inet6 ? 1 : 0'
was removed from the default $ldap_sys_default.
Configure this Net::LDAP attribute explicitly one way or another,
as needed.

  Mark

Reply via email to