[Dovecot] login fails when username has apostrophe

Timo Sirainen tss at iki.fi
Wed Jan 7 07:08:03 EET 2009


On Jan 6, 2009, at 6:47 PM, Karl Latiss wrote:

> On Tue, 2009-01-06 at 18:33 -0500, Timo Sirainen wrote:
>> On Wed, 2009-01-07 at 10:19 +1100, Karl Latiss wrote:
>>> Jan  5 16:15:05 www-example1 dovecot: auth(default): ldap(julie.o
>>> \'reilly at example.com,10.3.96.60): pass search: base=dc=example,  
>>> dc=com
>>> scope=subtree filter=(&(objectClass=qmailUser)(uid=julie.o\ 
>>> \'reilly))
>>> field
>>> s=mail,userPassword
>>
>> I think it should be julie.o\\\'reilly in there. Have to check why.
>>
>>> Jan  5 16:15:07 www-example1 dovecot: auth(default): client out:  
>>> FAIL
>>> 1       user=julie.o\'reilly at example.com
>>> failed, 1 attempts): user=<julie.o\'reilly at example.com>,  
>>> method=PLAIN,
>>
>> But I think your client (PHP webmail with automatic slashing  
>> enabled?)
>> is sending the initial \ here. Try logging in manually with telnet to
>> make sure.
>
> The previous log output is with me telnetting in manually, however the
> webmail software (roundcube) produces the same results.

That's weird. I'll try to reproduce it tomorrow. I don't have a  
working LDAP server setup currently though. Ubuntu slapd config looks  
weird.


More information about the dovecot mailing list