Hi Emmanuel, Emmanuel Lecharny schrieb: > > It would then be interesting to store a kind of virtual attribute > which hold the number of descendant within each entry. If this number > is 0, then this is a leaf.
Just for info, there are already some (non-standardized) attributes for such information. hasSubordinates: Contains TRUE or FALSE. Defined in X.501. Implemented by OpenLDAP and IBM Tivoli. numSubordinates: Contains the number of direct subordinates, 0 means leaf. There is only an outdated internet draft http://www.faqs.org/ftp/internet-drafts/draft-boreham-numsubordinates-01.txt Implemented by Sun Directory and IBM Tivoli. subordinateCount: Novell eDirectory propriety attribute, works like numSubordinates. The Studio browser uses this information to decide if a branch is expandable or not. Or should this attribute contain the number of *all* subordinates (recursively) of an entry? Regards, StefanS
