[Fedora-directory-users] Re: Total number of LDAP entries

Nalin Dahyabhai nalin at redhat.com
Tue Mar 10 15:55:59 UTC 2009


On Tue, Mar 10, 2009 at 04:14:28PM +0100, Branimir wrote:
> well, I know that I can perform search and count them. I hoped that  
> there is some shell command implemented in FDS that could provide this  
> number. I administer commercial LDAP solution that provides such  
> command. In my case this commercial solution charges per directory entry  
> so I always have to know entry count. I was hoping FDC has some kind of  
> equivalent command.

Assuming you only care about entries that get stored on disk (which is
what I'd prefer if I were a customer), you could find the id2entry
database file run 'db_stat -d' against it, and use the number of unique
keys and data items it returns as your count.

HTH,

Nalin




More information about the Fedora-directory-users mailing list