Novell is now a part of Micro Focus

eDirectory: Making It Count!

Novell Cool Solutions: Tip
By Wolfgang Schreiber

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.

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

© Copyright Micro Focus or one of its affiliates