Re: [Exim] String expansion in fixed-login auth

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Philip Hazel
Data:  
Para: Rudolf Kompf
CC: exim-users
Asunto: Re: [Exim] String expansion in fixed-login auth
On Wed, 5 Nov 2003, Rudolf Kompf wrote:

>
> I had this client-side authenticator
> fixed_login:
> driver = plaintext
> public_name = LOGIN
> client_send = : log1 : pwd1
>
> This works well. Now I want the client_send to define as string expansion
> depended on $host. But the following string definition does not work:
>
> client_send = ${if eq {$host}{my.relay.de}{ : log1 : pw1 }{ : log2 : pw2}}
>
> Exim's error message:
> expansion of "${if eq {$host}{my.relay.de}{" failed in fixed_login
> authenticator:
> missing } at end of string
>
> I tested some other versions, e.g. escaping the colons, quotation of " :
> logx : pwx ".
> All don't work.


Exim splits the text into three strings _before_ expanding each one. So
you'll have to do something like

  client_send = : ${if eq {$host}{my.relay.de}{log1}{log2}} :
                  ${if eq ${host}{my.relay.de}{pw1}{pw2}}



--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book