With CA directory as user-store, i want to count the total number of user data entry present in a given dsa, Please suggest how it can be accomplished.
Thanks in advance,
Can you please elaborate your query more?
Would you like to list the contents of a DSA?
You can run ldapsearch command to get number of user entries in CA Directory.
for example: ldapsearch.exe -D "uid=admin,ou=people,dc=example,dc=com" -w test -h <hostname> -p 1234 -b "dc=example,dc=example" "uid=*" ldapentrycount
where -D = admin user to contact ldap
-w = password of admin user
-h= hostname of ldap
-p=port of ldap
-b= bind DN
As already suggested by Lavanya in the previous comment, CA Directory provides a special entry information selector dxEntryCount to count entries.
For a good description, please take a look at our wiki here: Counting Entries - CA Directory - 12.0.14 - CA Wiki
Hope it helps,
You can as well use DXAdmin, if it is still shipped.
As suggested by Lavanya and Roberto, you can certainly use ldapsearch. If you do not have openLDAP tools installed and available to you, one can certainly use 'dxsearch' command line utility that ships with CA Directory product.
Another option to quickly check "how many number of entries" you have in a particular DSA is to connect to DXconsole and execute 'get cache;'.
At the end of the output you will something like:
dxgrid-db-size = 500000000
Used bytes in file = 282522
Reclaimable bytes = 98
Total number of entries = 1382 <= This line in the output
disable-transaction-log = false
disable-transaction-log-flush = false
Retrieving data ...