Re: [exim] LDAP second level queries?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jeremy Harris
Date:  
À: exim-users
Sujet: 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