[Exim] Combining conditions

Top Page
Delete this message
Reply to this message
Author: Craig Jackson
Date:  
To: exim-users
Subject: [Exim] Combining conditions
I need to combine these conditions that work individually:

hide condition = ${if eq {${lookup ldap
{user="cn=admin,dc=localsurface,dc=com" \
        pass=PASS
ldap:///cn=${quote_ldap:$local_part},ou=${quote_ldap:$domain}, \
        dc=localsurface,dc=com?cn?sub?}}}{$local_part}{yes}{no}}
hide condition = ${if eq {${lookup ldap
{user="cn=admin,dc=localsurface,dc=com" \
       pass=PASS
ldap:///cn=${quote_ldap:$local_part},ou=${quote_ldap:$domain}, \
       dc=localsurface,dc=com?accountStatus?sub?}}}{true}{yes}{no}}



I've followed the instructions and created the byzantine set of braces
like this:

  hide condition = ${if and {{eq {${lookup ldap
{user="cn=admin,dc=localsurface,dc=com" \
        pass=PASS
ldap:///cn=${quote_ldap:$local_part},ou=${quote_ldap:$domain}, \
        dc=localsurface,dc=com?cn?sub?}}}{$local_part}{yes}{no}}} \
        { eq {${lookup ldap {user="cn=admin,dc=localsurface,dc=com" \
        pass=PASS
ldap:///cn=${quote_ldap:$local_part},ou=${quote_ldap:$domain}, \
        dc=localsurface,dc=com?accountStatus?sub?}}}{true}{yes}{no}}}}



Error: missing a { or } in and {}

Can someone explain and show OR tell me another way?

Thanks,
Craig

--
Craig Jackson
cjackson@???