Re: [Exim] Problems with condition

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Frank Elsner
Date:  
À: Nico Erfurth
CC: Exim users list
Sujet: Re: [Exim] Problems with condition
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.

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




Kind regards   _______________________________________________________________
Frank Elsner  /                         c/o  Technische Universitaet Berlin   |
 ____________/                               ZRZ, Sekr. E-N 50                |

|                                            Einsteinufer 17                  |
| Voice: +49 30 314 23897                    D-10587 Berlin                   |
| SMTP : Elsner@???             Germany    ______________________|

|_______________________________________________________| Momentan ist richtig