[exim] Using crypted Password for authentication

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Luca Bertoncello
Date:  
À: Exim-Users ML
Sujet: [exim] Using crypted Password for authentication
Hi, all!

I currently use a DB with the user's password without encryption to
authenticate the users with Exim.
I'd like to encrypt these passwords, but I don't know how can I write my
authenticators...

Actually I wrote something like this:

# PLAIN-Authentifizierung
fixed_plain:
driver = plaintext
public_name = PLAIN
server_condition = ${lookup mysql{SELECT passwd FROM account WHERE
accountname='$2' AND virtual = 'f'} {${if eq{$value}{$3}{yes}{no}}}{no}}
server_set_id = $2

# LOGIN-Authentifizierung
fixed_login:
driver = plaintext
public_name = LOGIN
server_condition = ${lookup mysql{SELECT passwd FROM account WHERE
accountname='$1' AND virtual = 'f'} {${if eq{$value}{$2}{yes}{no}}}{no}}
server_set_id = $1
server_prompts = "Username:: : Password::"

# CRAM-MD5-Authentifizierung
cram:
driver = cram_md5
public_name = CRAM-MD5
server_secret = ${lookup mysql{SELECT passwd FROM account WHERE
accountname='$1' AND virtual = 'f'}{$value}fail}
server_set_id = $value

# SPA-Authentifizierung
spa:
driver = spa
public_name = NTLM
server_password = ${lookup mysql{SELECT passwd FROM account WHERE
accountname='$1' AND virtual = 'f'}{$value}fail}

How can I rewrite these statements to use encrypted (I think I'll use Unix
encryption system) password?

Thanks a lot in advance!
--
_______________________________
Luca Bertoncello
-Programmierung / Mailserver-

IMS Internet-Media-Service GmbH
Bärensteiner Straße 7
01277 Dresden

Fon: +49 351 2112034
Fax: +49 351 2112020
email: bertoncello@???