[Dovecot] noisy auth-worker messages in logs (dovecot 2.1.8 FreeBSD)

Philippe Chevalier chevalier at dspnet.fr
Mon Sep 24 18:04:40 EEST 2012


On Mon, Sep 24, 2012 at 05:16:06PM +0300, Timo Sirainen wrote:
>On 24.9.2012, at 16.48, Philippe Chevalier wrote:
>
>> dovecot: auth-worker(99126): Error: passwd(xxx at domain.org,12.34.254.255): getpwnam() failed: Invalid argument
>>
>> I guess it's because the login is a full email that getpwnam fails.
>
>So if you log in as nonexistent user "foo.bar" it doesn't log an error, but if you log in as "foo at bar" it does? The attached patch probably fixes it?

If I log in as a non-existent user (neither in passwd or ldap), without the domain part, it logs also an error, but this time from ldap :

dovecot: auth: Error: ldap(foo.bar,xx.xx.xx.xx,<bCVDqnPKXQC8pSxD>): ldap_bind() failed: Invalid DN syntax

My bind DN to check the password is :

auth_bind_userdn = dc=%n,dc=%d,ou=Domains,ou=Mail,dc=dspnet,dc=fr

(I have virtual users in multiple domains)

So ldap protests probably because the "domain" part is missing.

If I use a non-existent login "foo at bar", dovecot logs nothing : no error from passwd, no error from ldap, just an authentication error on the client side.

I will apply the patch later today and will let you know the result.

Regards,

K.
-- 
Kyoko Otonashi's shrine / Le temple de Kyoko Otonashi
My tribute to Maison Ikkoku / Mon hommage a Maison Ikkoku
Visit http://www.kyoko.org/



More information about the dovecot mailing list