LDAP not connecting over IPv6

Christian Roessner c+amavis at roessner-network-solutions.com
Fri May 27 10:09:17 CEST 2011


Am 27.05.2011 09:53, schrieb Christian Roessner:
> Hi,
> 
> latest amavis-pre: LDAP ist not connected over IPv6:
> 
> amavisd   2348   amavis   14u  IPv6   8676      0t0  TCP
> [2a01:4f8:131:1081:88:198:80:230]:50422->[2a01:4f8:61:8222:88:198:211:19]:5432
> (ESTABLISHED)
> amavisd   2348   amavis   15u  IPv4   8678      0t0  TCP
> 88.198.80.227:50414->88.198.211.19:389 (ESTABLISHED)
> amavisd   2348   amavis   16u  IPv6   8683      0t0  TCP
> [2a01:4f8:131:1081:88:198:80:230]:50424->[2a01:4f8:61:8222:88:198:211:19]:5432
> (ESTABLISHED)
> 
> The postgresql database is connected over IPv6, but not LDAP. Both PgSQL
> and OpenLDAP are on the same host. The amavisd.conf uses
> db.roessner-net.de in both cases.
> 
> Best wishes
> Christian

Fixed with the following patch:

--- amavisd-orig	2011-05-27 10:06:42.000000000 +0200
+++ amavisd	2011-05-27 10:07:24.000000000 +0200
@@ -16994,6 +16994,7 @@
                             port    => $self->{port},
                             version => $self->{version},
                             timeout => $self->{timeout},
+			    inet6   => 'Y',
                             );
   if (!$ldap) {  # connect failed
     do_log(-1,"connect_to_ldap: unable to connect to host %s", $hostlist);

-- 
Roessner-Network-Solutions
Bachelor of Science Informatik
50°34.725'N, 08°40.904'O, Nahrungsberg 81, 35390 Giessen
F: +49 641 5879091, M: +49 176 93118939
USt-IdNr.: DE225643613
http://www.roessner-network-solutions.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20110527/ffc8ef85/attachment.pgp>


More information about the amavis-users mailing list