On Tue, 22 Feb 2000, Will Morton wrote:
> ldap;"ldap://ldapserv:30011/ou=mailDomains,o=cwc?commonName?one?(cn=$key)"
>
> but this isn't working. Can someone please correct my syntax?
Not directly, since LDAP (and its URL syntax) are something of a black
art to me. Have you tried testing the query using an expanded string?
Something like
exim -be
${lookup ldap {ldap://ldapserv:30011/ou=mailDomains,o=cwc?commonName?one?(cn=some.domain)}{$value}fail}
?
Oh, hang on. I *do* see a syntax problem.
local_domains = ldap;"ldap://ldapserv:30011/ou=mailDomains,o=cwc?commonName?one?(cn=$key)"
won't work for at least two reasons.
(a) Those quotes in the middle of it mean the query is malformed; Exim
options that don't start with a quote are just taken literally.
(b) Those colons in the middle of it need to be doubled because
local_domains is a colon-separated list.
Try
local_domains = ldap;ldap:://ldapserv::30011/ou=mailDomains,o=cwc?commonName?one?(cn=$key)
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.