Hi,
I have a mysql with usernames and passwords, the passwords are
in plain text and in md5 format. I need to use both of this:
fixed_login:
driver = plaintext
public_name = LOGIN
server_prompts = Username:: : Password::
server_condition = "${if and { \
{!eq{$1}{}} \
{!eq{$2}{}} \
{eq{$2}{${lookup mysql{SELECT password FROM users
\
WHERE username='${local_part:$1}' \
AND domainname='${domain:$1}'}{$value}fail}}} \
} {yes}{no}}"
server_set_id = $1
And for encrypted passwords:
fixed_login_ecnrypt:
driver = plaintext
public_name = LOGIN_encrypt
server_prompts = Username:: : Password::
server_condition = "${if and { \
{!eq{$1}{}} \
{!eq{$2}{}} \
{crypteq{$2}{\\{md5\\}${lookup mysql{SELECT
password FROM users \
WHERE username='${local_part:$1}' \
AND domainname='${domain:$1}'}{$value}fail}}} \
} {yes}{no}}"
server_set_id = $1
but when a user with a pass stored in md5 try to send email, I
get this: 535 Incorrect authentication data (set_id=
Because the first authenticator is for plaintext password. If I delete
the first authenticator I have not problem to send the email.
How can I get both authenticators working together.
Guillermo Llenas
Tecnología
Inter.net Argentina
==========================
+54 11 4343 1500
www.ar.inter.net