[exim] P.S. exim -bh and permissions

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: T. Horsnell
Dátum:  
Címzett: exim-users
Tárgy: [exim] P.S. exim -bh and permissions

>This is part of my attempt to investigate another problem, which may
>be relevant. The check on /etc/shadow is done in the authenticators
>section by:
>
>fixed_plain:
>  driver = plaintext
>  public_name = PLAIN
>  server_prompts = :
>  server_condition = ${if crypteq{$3}\
>    {${extract{1}{:}{${lookup{$2}lsearch{/etc/shadow}{$value}}}}\
>    }{yes}{no}}

>
>Although this works (people successfully authenticate from offsite),
>looking closely, I see that the 'extract' function is actually extracting
>the wrong field, field-1, which is the userid field of /etc/shadow.
>The docs say field numbering starts at 1, so this should be failing...
>

Sorry, I've just read that lsearch strips the first field, and so
extract *should* be operating on field 1 of the remainder.

I'm still stuck on the exim -bh thing tho.

Terry