[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: enumeratin all ldap objects in a LDAP ?

Michael Arndt wrote:

what is a "good" way to enumerate all objects in an open ldap in order to get a total count of defined objects ? ( how many objects ..)

There is no way via LDAP to count objects returned for a particular search without retrieving them. However you can limit the amount of data retrieved by limiting the list of attrs to be sent.

If you just want to know the overall raw number of all entries in an OpenLDAP server you could also simply use grep -c "^dn: " on the LDIF backup files you create with slapcat.

Ciao, Michael.

P.S.: I've interpreted "enumerate" as synonym for "count".