On 04/11/13 18:38, Cyborg wrote:
Am 04.11.2013 18:06, schrieb nick:
On 01/11/13 13:56, Jeremy Harris wrote:
On 31/10/13 15:51, nick wrote:
condition name expected, but found "${lookup ldap{ld"
inside "and{...}" condition
${lookup... is an expansion. Not a condition, and it matters.
Get thee to the documentation!
Thanks for the reply
I am struggling with the docs, but I read in the Exim documentation
(http://www.exim.org/exim-html-current/doc/html/spec_html/ch-file_and_database_lookups.html
):
"require condition = ${lookup"
Are you refering to this ?
require condition = ${lookup whoson {$sender_host_address}{yes}{no}}
"Lockup" is a command to expand something, which can in the end result
in a true/false - 1/0 .
"condition" takes the result and checks if it's true or false and
accordingly controls if the following command(s) is/are to be executed.
"require" request a check to be done, before any subsequent ACL
statement can be used .
Btw: What was it, you wanted to know excatly ?
Thanks for the response and your explanation.
I'm trying to build an authenticator that will do ldapauth if the
submitted username has an LDAP attribute set.
Something like ( and I know this is wrong ):-
server_condition = ${if and \
${lookup
ldap{ldap:///o=southover,c=uk?mail?sub?
(&(cn=${quote_ldap_dn:$1})(smtpAuth=${quote_ldap:TRUE}))}} \
${ldapauth{user="cn=${quote_ldap_dn:$1},o=southover,c=uk"
pass=${quote:$2} ldap://ldap.southover.net/} \
}{yes}{no}
"Unable to authenticate at present (set_id=souxelp): condition name
expected, but found "{ldapauth {user=" "
It seems that I do not have a very good grasp of the logic syntax for
server_condition.
Any advice would be gratefully received.
n.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/