RE: SigningTable and LDAP

From: Murray S. Kucherawy <>
Date: Wed, 2 May 2012 04:45:44 +0000

> -----Original Message-----
> From: [mailto:opendkim-users-] On Behalf Of Quanah Gibson-Mount
> Sent: Tuesday, May 01, 2012 9:13 PM
> To:
> Subject: SigningTable and LDAP
> Hi list,
> In looking at opendkim.conf(5) and the README file for using LDAP with
> OpenDKIM, I'm not sure how you specify multiple LDAP URI's to the
> SigningTable parameter.
> For example, most of our customers have multiple LDAP replicas. I
> would want the SigningTable parameter to be able to reference any of
> those replicas, for failover purposes.
> Do I specify SigningTable multiple times, once per ldap server? Or can
> I provide the LDAP URI's multiple times with the SigningTable parameter?
> Same goes for the KeyTable paramater.
> [...]

The latter. The code that parses the provided value splits them first on spaces and tabs, and what's between those delimiters is assumed to be an LDAP URI that it should use to contact a server. Order is preserved. They're all passed individually to ldap_is_ldap_url() first for a basic sanity check.

One caveat is that we assume symmetry for the schemas for the various URIs provided. That is, we drop everything that's not part of the scheme://host:port and pass that list to ldap_initialize(); what's left is kept only from the first one and used to construct the actual queries when the time comes. Hopefully that's a sane assumption.
> For example, would I want:
> SigningTable ldap://""?DKIMSelector?sub?(DKIMIdentity =$d)
> ldap://""?DKIMSelector?sub?(DKIMIdentity=$d)
> or
> SigningTable ldap://""?DKIMSelector?sub?(DKIMIdentity=$d)
> SigningTable ldap://""?DKIMSelector?sub?(DKIMIdentity=$d)

The first one.

Received on Wed May 02 2012 - 04:45:58 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:20:39 PST