Re: [Exim] Problems with condition

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Frank Elsner
Datum:  
To: Nico Erfurth
CC: Exim users list
Betreff: Re: [Exim] Problems with condition
On Fri, 01 Nov 2002 14:19:33 +0100 Frank Elsner wrote:
> On Fri, 01 Nov 2002 13:52:39 +0100 Nico Erfurth wrote:
> > On Fri, 1 Nov 2002, Frank Elsner wrote:
> >
> > > Sorry to bother you with my problem but I need to reduce my current
> > > authentication which is
> > ....
> > > to a a form where only file "DBM/auth/asmtp" will be used.
> > >
> > > Using my new version
> > >
> > > plain:
> > >   driver = plaintext
> > >   public_name = PLAIN
> > >   server_condition = \
> > >   ${if crypteq {$2} {${lookup{$1}dbm{DBM/auth/asmtp}{$value}{junk}{yes}{no}}
>                     ^^            ^^
>                     $3            $2        is correct

>
> You haven't seen my eroor with $2 / $3 :-)
>
> > > server_set_id = $2#
> > >
> > > 435 Unable to authenticate at present: missing or misplaced { or }
> > >
> > > I can't see it, so plewase help me.
> >
> > Just a little syntax-error
> > ${if crypteq {$2} \
> > {${lookup{$1}dbm{DBM/auth/asmtp}{$value}{:fail:}}{yes}{no}}
> >                                                 ^ This one was missing

> >
> > And it's better to use :fail: (IMHO).
>
> Ok using
>
> ${if crypteq {$3} {${lookup{$2}dbm{DBM/auth/asmtp}{$value}{:fail:}}{yes}{no}}
>
> gives incorrect authentication data authenticates ok.


Sorry, I'm stressed. This line should read

gives incorrect authentication data.

> The value yielded by the lookup is identical and correct for both the old
>                                                               and new versions


--Frank