[Dovecot] doveadm quota does not list all accounts

Timo Sirainen tss at iki.fi
Tue Dec 20 10:15:21 EET 2011


On Tue, 2011-12-20 at 10:10 +0200, Nikolaos Milas wrote:
> On 20/12/2011 7:41 πμ, Timo Sirainen wrote:
> 
> > Can you try if changing it back helps? Or by running the same LDAP query using ldapsearch. Is there a reason why you changed the scope? (I'm not entirely sure what the LDAP schemes usually look like..)
> 
> The same query, using ldapsearch (with the same binddn, same scope, same 
> filter) returns 247 entries. The command is (all searches are against 
> localhost - it's a local replication slave [openldap syncrepl consumer]):
> 
> /usr/local/openldap/bin/ldapsearch -x -W -vv -D 
> "uid=authenticate,ou=System,dc=noa,dc=gr" -s one -b 
> "ou=people,dc=example,dc=com" uid
> 
> doveadm user '*' and doveadm quota get -A both return the same 30 
> entries. I noticed that most of them are the LDAP user entries most 
> recently updated in the LDAP Server (although it doesn't make any sense 
> to me why it so happens).

Try adding (objectClass=posixAccount) as filter in the ldapsearch.
That's the default iterate_filter.




More information about the dovecot mailing list