Re: [exim] combining authentication methods

Top Page
Delete this message
Reply to this message
Author: Raphael Reich
Date:  
To: peter
CC: Exim Users Mailing List
Subject: Re: [exim] combining authentication methods
Peter Bowyer schrieb:
>
> $if { or {${lookup mysql {blah}{1}{0}} { something else } }
>
>
> ie you need {} around each of the 'or'd conditions, and then the usual
> syntax for ${lookup within the first condition.
>
> Peter


tried:

server_condition = ${if or\
                         {${lookup mysql{SELECT '1' FROM users WHERE
username = '${quote_mysql:$2}' AND clear = '${quote_mysql:$3}'} {yes}{no}}}\
                         {${if
crypteq{$3}{${extract{1}{:}{${lookup{$2}lsearch{CONFDIR/passwd}{$value}{*:*}}}}}{1}{0}}}\
                         }


result:

435 Unable to authenticate at present (set_id=******): each subcondition
inside an "or{...}" condition must be in its own {}