El 11/09/12 16:24, Timo Sirainen escribió:
On 3.9.2012, at 14.16, Angel L. Mateo wrote:

        Moreover... according to previous mails (thread 
http://www.dovecot.org/list/dovecot/2012-June/066691.html) there is a patch to 
remove a specific user entry from cache. This patch I think is included in 
dovecot 2.1.9 (which I'm running) and the syntax is (I think):

doveadm auth cache flush <user>
4 cache entries flushed

Yep.

        So I'm running this command. Whenever I run it, I get the message that 
3 (sometimes, is 4) entries are removed, but user information isn't really 
reloaded and I doubt it is really removed from cache (I have the user in a 
passwd-file and information used by imap processes is still the old one, no the 
new one, changed before the flush)

Works in my tests.

        Is this cache the same than the user information cache?

The parameter of the user I want to change is his quota, so I have modified quota value in my ldap diretory, then I run:

doveadm auth cache flush <myuser>

        in the logs I get:

Sep 18 08:47:13 myotis34 dovecot: auth: Debug: master in: CACHE-FLUSH#0111#011<myuser>

        now I ask for user information with:

doveadm user <myuser>

        and this is what I get from logs:

Sep 18 08:47:19 myotis34 dovecot: auth: Debug: master in: USER#0111#011<myuser>#011service=doveadm

Sep 18 08:47:19 myotis34 dovecot: auth: Debug: prefetch(<myuser>): passdb didn't return userdb entries, trying the next userdb

Sep 18 08:47:19 myotis34 dovecot: auth: Debug: userdb-cache(<myuser>): hit: <myuser>#011home=/home/otros/99/151299#011uid=151299#011gid=405

Sep 18 08:47:19 myotis34 dovecot: auth: Debug: master out: USER#0111#011<myuser>#011home=/home/otros/99/151299#011uid=151299#011gid=405

Sep 18 08:47:41 myotis34 dovecot: auth: Debug: master in: USER#0111#011<myuser>#011service=doveadm

Sep 18 08:47:41 myotis34 dovecot: auth: Debug: prefetch(<myuser>): passdb didn't return userdb entries, trying the next userdb

Sep 18 08:47:41 myotis34 dovecot: auth: Debug: userdb-cache(<myuser>): hit: <myuser>#011home=/home/otros/99/151299#011uid=151299#011gid=405

Sep 18 08:47:41 myotis34 dovecot: auth: Debug: master out: USER#0111#011<myuser>#011home=/home/otros/99/151299#011uid=151299#011gid=405

As you can see in the third message, it is still using information from userdb cache

Reply via email to