Novell Home

eDirectory: Making It Count!

Novell Cool Solutions: Tip
By Wolfgang Schreiber

Rate This Page

Reader Rating  stars  from 8 ratings

Digg This - Slashdot This

Posted: 28 Sep 2005
 

Did you ever want to know how many objects there are in your tree or in a given organizational unit?

SOLUTION: Forget about traversing the tree and counting the objects that you run into - let eDirectory do the count for you:

Simply use the operational attribute "subordinateCount" in your (LDAP): Set your filter to "( subordinateCount > 0 )" and retrieve the "subordinateCount" from your results.

What you get is a list of containers with their respective number of child objects. The rest is adding numbers.

Reader Comments

  • This would be very useful, if I could get it to work. I am using LDAP Browser\Editor 2.8.2. I'm connecting to eDir 8.7.3.6 running on NW6.5SP3. I don't see that attribute in any of my OUs.
  • The idea is really good. But I didn't find the attribute subordinateCount in the schema. Can you give an example..
  • Example, as requested: ldapsearch -h 123.45.67.89 -p 389 -D cn=admin,dc=users,dc=system -x -W subordinateCount

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.