Re: [exim] LDAP second level queries?

Top Page
Delete this message
Reply to this message
Author: Jeremy Harris
Date:  
To: exim-users
Subject: Re: [exim] LDAP second level queries?
On 14/06/17 07:13, Mikhail Golub wrote:
> data = ${sg \
>                 { ${lookup ldapm {LDAP_AUTH
> ldap:///DC=CORP,DC=COM?mail?sub?(&(objectClass=user)(mail=*)(memberOf:1.2.840.113556.1.4.1941:=\

>
>                   ${sg { ${lookup ldapm {LDAP_AUTH
> ldap:///OU=MYOU,DC=CORP,DC=COM?distinguishedName?sub?(&(proxyAddresses=smtp:${quote_ldap:$local_part}@$domain)(objectclass=*))}}\

>
>                   } {,,} {,} } ))}} } {\n} {,} }


Using listextract rather than sg, as the docs recommend, is slightly
cleaner.
--
Jeremy