How to get the count of Users in LDAP Server
807573Mar 29 2007 — edited Mar 30 2007Hi,
We want to count the Number of Users available in Sun ONE 5.2 directory server (on Solaris).
As of now, I can goto each node and check the count from the Directory Server Admin Console.
Is there any way to write a command/script to retrieve the count? I am also interested in getting the count for an individual Node where users are stored.
For example, our users are stored in:
ou=people,o=staff,c=taiwan,o=apac,dc=company,dc=com
ou=people,o=customers,c=taiwan,o=apac,dc=company,dc=com
I want to find out the # of Taiwan Staff, # of Taiwan Customers etc...
Later, I also want to extend this to get Count of Groups created in LDAP :)
Thanks,
Kamlesh