Re: [exim] LDAP second level queries?

Top Pagina
Delete this message
Reply to this message
Auteur: Jeremy Harris
Datum:  
Aan: exim-users
Onderwerp: 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