LDAP connection types (was Re: LDAP not connecting over IPv6)

Mark Martinec Mark.Martinec+amavis at ijs.si
Wed Jun 1 00:33:52 CEST 2011


Quanah,

> My one comment about this patch would be that the it doesn't support using
> "ldapi", which is connecting to a local LDAP server over a unix socket.

It doesn't? The patch added the 'scheme' attribute to the $default_ldap
hash just for this purpose - although I haven't tested it.

Something along these lines would probably work according to
the Net::LDAP documentation:

$default_ldap = {
  hostname      => '/socket/path/to/ldap',
  scheme        => 'ldapi',
  ...
};


Mark


More information about the amavis-users mailing list