Re: [exim] combining authentication methods

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Giuliano Gavazzi
Dátum:  
Címzett: Raphael Reich
CC: exim-users
Tárgy: Re: [exim] combining authentication methods

On 7 Jun 2005, at 09:35, Raphael Reich wrote:

>> but how can I merge them?
>>
>> can I do it by just using "or"?
>>
>> plain_server:
>> driver = plaintext
>> public_name = PLAIN
>> server_condition = "${if
>> crypteq{$3}{${extract{1}{:}{${lookup{$2}lsearch{CONFDIR/passwd} 
>> {$value}{*:*}}}}}{1}{0}}\
>>                               or ${lookup mysql{SELECT '1' FROM  
>> users \
>>                               WHERE username = '${quote_mysql:$2}' \
>>                               AND clear = '${quote_mysql:$3}'}  
>> {yes}{no}}"
>> server_set_id = $2

>>
>> thanks for any suggestion
>>
>>
>>
>>
> I tried various combinations to get this "merged" authenticator
> running, but
> unfortunately I have not succeeded yet.
>
> Whatever I try, Exim only accepts method.
>
> Please, can anyone give me a hint to solve this problem?



that is not the correct syntax for "or". As far as I know it is instead:

${if or

but I might be wrong..

Giuliano