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

Re: count the number of registered users in ldap

> Is there any specific command to count the number of registered
> entries/users in ldapserver todate?

There is no server-side count operation within LDAP. Actually you would
have to search for the users, retrieve parts of the entries (only the
DNs) and count them at the client side. Obviously this won't scale for
many users.

Having an operational attribute like numSubordinates could help
depending on your DIT layout (one container with all users being
immediate subordinate entries). But my request to implement this in
OpenLDAP's slapd was declined:


Ciao, Michael.