User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9
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".