Re: [exim] Multiple ldap Condition Check

Pàgina inicial
Delete this message
Reply to this message
Autor: Mark T. Valites
Data:  
A: exim-users
Assumpte: Re: [exim] Multiple ldap Condition Check
On Thu, 10 Feb 2005, Tony Finch wrote:

> The arguments to and{} must be expansion conditions, and must be wrapped
> in braces. In your code, ${lookup is not an expansion condition, and is
> not wrapped in braces.
>
> Remember that ${lookup has built in then/else functionality


I didn't realize this, but thought it was funny my ldap queries against a
single ldap server didn't have then/else in them.

> condition = ${lookup ldap {ldap://<2nd_ldap_server>/dc=<dc>,dc=<dc>,dc=<dc>?uid?sub?(uid=$local_part)} \
>                 {${lookup ldap {ldap:///ou=<ou>,o=<o>?uid?sub?(uid=$local_part)} \
>                      {yes} {no} }} \
>                 {no} }


Perfect - thank you Tony!!

--
Mark T. Valites
Unix Systems Analyst
Computing & Information Technology
SUNY Geneseo
>--))> >--))>