Re: [Exim] plain auth match using crypteq

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Stephen Gran
Date:  
À: exim-users
CC: Mark Foster
Sujet: Re: [Exim] plain auth match using crypteq
On Wed, Mar 17, 2004 at 03:32:23PM -0800, Mark Foster said:
> --
> I'm trying like heck to get this working (I'm presenting about exim to
> SeaBUG tomorrow and really need a working example).
>
> I want to do PLAIN AUTH against a file where each line of the file has a
> username:password
>
> The password is MD5 encrypted.
>
> So here is the authenticator
> # This should allow encrypted passwords in authplain file
> lookup_plain:
>   driver = plaintext
>   public_name = PLAIN
>   server_condition = ${lookup{$2}lsearch{/usr/local/etc/exim/authplain}\
>     {${if crypteq{$3}{\{md5\}$value}{yes}{no}}}{no}}
>   server_set_id = $2

>
> Here is the authplain file
> mdf:45ebd07ed0eea75cfdc99df2b0887821


plain_file_server:
driver = plaintext
public_name = PLAIN
server_condition = "${if crypteq{$3}{${extract{1}{:}{${lookup{$2}lsearch{CONFDIR/passwd}{$value}{*:*}}}}}{1}{0}}"
server_set_id = $2
server_prompts = :

Is what works for me. Sorry about the wrap.
--
--------------------------------------------------------------------------
|  Stephen Gran                  | Time sharing: The use of many people by |
|  steve@???             | the computer.                           |
|  http://www.lobefin.net/~steve |                                         |

--------------------------------------------------------------------------