Hello, I am running dovecot-2.0.13-1_128.el5 x86_64 RPM on CentOS 5.7. All accounts are virtual, hosted on LDAP Server. My problem is that the command: doveadm quota get -A stopped listing all accounts. I think this problem started after I changed in LDAP lookup configuration from "scope = subtree" to "scope = onelevel", because it did not occur before (I did no other changes). Now, the above command only lists 12 accounts. If I query for a particular user: doveadm quota get -u userx this works fine, but userx (and all users except those 12) is NOT listed when trying to display all users. How can I run the above command without problems again? Thanks in advance, Nick
Le 2011-12-15 23:00, Nikolaos Milas a ?crit?:> Hello, > > I am running dovecot-2.0.13-1_128.el5 x86_64 RPM on CentOS 5.7. > > All accounts are virtual, hosted on LDAP Server. > > My problem is that the command: > > doveadm quota get -A > > stopped listing all accounts. I think this problem started after I > changed in LDAP lookup configuration from "scope = subtree" to "scope > = onelevel", because it did not occur before (I did no other > changes). > > Now, the above command only lists 12 accounts. If I query for a > particular user: > > doveadm quota get -u userx > > this works fine, but userx (and all users except those 12) is NOT > listed when trying to display all users. > > How can I run the above command without problems again? > > Thanks in advance, > Nickupgrade to the latest rpm i any problem with the last release -- http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x092164A7 gpg --keyserver pgp.mit.edu --recv-key 092164A7 http://urlshort.eu fakessh @ http://gplus.to/sshfake http://gplus.to/sshswilting http://gplus.to/john.swilting
On 16.12.2011, at 0.00, Nikolaos Milas wrote:> I am running dovecot-2.0.13-1_128.el5 x86_64 RPM on CentOS 5.7. > > All accounts are virtual, hosted on LDAP Server. > > My problem is that the command: > > doveadm quota get -A > > stopped listing all accounts. I think this problem started after I changed in LDAP lookup configuration from "scope = subtree" to "scope = onelevel", because it did not occur before (I did no other changes).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..) Also to make sure the problem is listing instead of something quota related, list the users: doveadm user '*'
On 20/12/2011 12:15 ??, Timo Sirainen wrote:> > Perhaps: iterate_filter = (uid=*) > > Actually, the current default iterate_filter is fine, if you look at the > default pass/user filters: > > #user_filter = (&(objectClass=posixAccount)(uid=%u)) > #pass_filter = (&(objectClass=posixAccount)(uid=%u))This means that default values for all these settings are compatible. I would say that it would be enough to explicitly state the default value for iterate_filter in the documentation. I guess the filter uid=* might probably also return all entries, because in many cases uid is part of the DN, so it is included in all entries. But this is not always the case. Nick