On Fri, 2009-05-15 at 09:29 +0200, Tom Sommer wrote:
> I'm sorry, but I still have problems with this. I got cache_size 1024,
> cache_ttl 3600, cache_negative_ttl 0, but if a user changes password in
> my SQL, sometimes it requires a restart of dovecot for him to be able to
> log in. 

You can always send SIGHUP to dovecot-auth instead of restart to flush
auth cache.

> The cache seems to be faulty somehow, I wish there was a way to dump the
> contents of the cache to debug this, because somehow I cannot forcefully
> reproduce it.

Here's a way:

1. Try to log in unsuccessfully.
2. Change the password.
3. Try to log in with the changed password -> doesn't work, because the
old one is still cached.

> Notice in this case the user never before logged in successfully, so I
> dont understand why he would even be in the cache, unless there is
> something wrong with cache_negative_ttl.

You're misunderstanding what it does. See its description:

# TTL for negative hits (user not found). 0 disables caching them completely.
#auth_cache_negative_ttl = 3600

I suppose there could be a new setting to use auth cache only for
successful lookups..

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to