[exim] Checking against two LOGIN mecanisms in one instance …

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jarek
Datum:  
To: exim-users
Betreff: [exim] Checking against two LOGIN mecanisms in one instance of
-----Original Message-----
From: Stephen Gran [mailto:steve@lobefin.net]
Sent: Tuesday, August 24, 2004 6:01 PM
To: exim-users@???
Subject: Re: [exim] Checking against two LOGIN mecanisms in one instance
ofexim ??

>You want an 'if or' type statement here. I use one of those myself for
>multiple auth mechanisms, but I don't have access to that machine right
>now. If you can't work it out yourself, write back later and I'll try
>to answer it this evening.


Thanks for Your answer,

I found explanation of this statement in exim-html documentation (or
{{<cond1>}{<cond2>}...}) now I'm trying to set something like:

${if or {{<cond1>}{<cond2>}} {yes}{no}}

where:
<cond1>={eq{${if and {{!eq{$1}{}}{!eq{$2}{}}{crypteq{$2}{\{md5\\}${lookup
mysql{SELECT password FROM boxes WHERE user_name='$1'}{$value}fail}}}}}
{1}{0}}}{1}}

<cond2>={eq{${if saslauthd{{$1}{$2}}{1}{0}}}{1}}

Well i'm stuck, this is a bit tricky for me.

Any help will be appreciated!
Jarek


----------------------------------------------------------------------
Ateny 2004 w Internecie! >>> http://link.interia.pl/f182d