Re: [exim] combining authentication methods

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Raphael Reich
Ημερομηνία:  
Προς: peter
Υ/ο: Exim Users Mailing List
Αντικείμενο: 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 {}