Hello all,
I am using exim4 version 4.89 as smtp-auth server. The exim should
authenticate against two LDAP servers.
I can optionally authenticate against one or the other.
To be able to authenticate against both, I replaced the "if" with an "if
or" and wrote both conditions in parentheses one after the other.
The problem, however, is that there is always an error message:
Unable to authenticate at present (set_id=xxxxx): missing } at end of
condition inside "or" group
The whole call looks like this:
server_condition = \
${if or \
{ \
{ \
ldapauth \
{user=${if eq {}{${lookup ldapdn
{ldap://ldap1.abc.net/LDAP_BASE??sub?(|(uid=${quote_ldap:$2})(mail=${quote_ldap:$2})(mailAlias=${quote_ldap:$2})(mailAlternateAddress=${quote_ldap:$2}))}}}
\
{uid=dummyuser} \
{${quote:${lookup ldapdn
{ldap://ldap1.abc.net/LDAP_BASE??sub?(|(uid=$2)(mail=$2)(mailAlias=$2)(mailAlternateAddress=$2))}}}}}
\
pass=${quote:$3} \
ldap://ldap1.abc.net/}{yes}{no}}\
} \
{ \
ldapauth \
{user=${if eq {}{${lookup ldapdn
{ldap://ldap2.abc.net/ou=Internet,ou=abc-intern,o=net?dn?sub?(&(|(uid=${quote_ldap:$2})(mail=${quote_ldap:$2})(mailAlternateAddress=${quote_ldap:$2}))(!(accountClosed=1)))}}}
\
{uid=dummyuser} \
{${quote:${lookup ldapdn
{ldap://ldap2.abc.net/ou=Internet,ou=abc-intern,o=net?dn?sub?(&(|(uid=${quote_ldap:$2})(mail=${quote_ldap:$2})(mailAlternateAddress=${quote_ldap:$2}))(!(accountClosed=1)))}}}}}
\
pass=${quote:$3} \
ldap://ldap2.abc.net/}{yes}{no}}\
} \
} \
}
Does anyone have any idea how I could solve this?
Claudia
--
Claudia Koch
Systemadministratorin
Central Technics
Tele Columbus Betriebs GmbH
Messe-Allee 2
04356 Leipzig
E-Mail: claudia.koch@???