[Dovecot] Problem with domain part in user_query in dovecot 1.1.14

Timo Sirainen tss at iki.fi
Sun May 17 21:09:30 EEST 2009


On Sun, 2009-05-17 at 14:48 +0000, Konstantin wrote:
> password_query = SELECT NULL AS password, 'Y' as nopassword, userid AS user FROM
>  main.mail_base WHERE userid = '%n' AND password = '%w' and domain='%d'

"userid AS user" drops the domain. Use rather:

select .., userid AS username, domain

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090517/33b35e93/attachment.bin 


More information about the dovecot mailing list