Re: [Exim] Exim 4.10 on OS X Server - Relay Problems

Pàgina inicial
Delete this message
Reply to this message
Autor: Giuliano Gavazzi
Data:  
A: Nico Erfurth
CC: exim-users@exim.org
Assumpte: Re: [Exim] Exim 4.10 on OS X Server - Relay Problems
At 17:47 +0100 2003/01/01, Nico Erfurth wrote:
>On Wed, 1 Jan 2003, Giuliano Gavazzi wrote:
>
>> >Exim 4.12 provides a "passwd"-lookup.
>>
>> Uh, thanks. So I guess this could be used as in:
>>
>>  login:
>>     driver = plaintext
>>     public_name = LOGIN
>>     server_prompts = "Username:: : Password::"
>>     server_condition = "${if and {{!eq{$1}{}}{!eq{$2}{}} \
>>                             {crypteq{$2}{\
>>                                  ${lookup passwd {$1}{$value}{*}}}}}{1}{0}}"

>
>No, you need to use extract to get the value you want, just check NewStuff
>from the exim4.12 docs.
>
>it will be more like
>
>server_condition = ${if crypteq {$2} \
>          {${lookup passwd {$1} {${extract{1}{:}{$value}}} fail }}{1}{0}}

>
>As usual, this is unchecked :)
>


ah, good, so it returns the whole passwd structure as a colon
separated record, or something similar (my master.passwd seems to
have one more field in the middle and one missing at the end when
compared to struct passwd).

Good that I did not test with my broken guess..


Thanks

Giuliano