How to find the disk space occupied by a subtree in ldap?
Hi
We have built a tree structure in LDAP similar to the following.
dc=orgname,dc=com-> orgname->countryname
where orgname is a domain object, orgname is an organization and countryname is a country object.
all the users are stored under the subtree countryname.
We needed to find the diskspace occupied by the users stored under the countryname subtree.
Please provide us the method to retrieve this information from the LDAP Server.
[483 byte] By [
iamits] at [2007-11-26 11:19:50]

# 1
I'm not really sure you can do this.
If we are talking about JES Directory Server, the directory information is stored inside a database, so it is not really that easy to figure which bits of the database files belong to that part of the ldap structure.
Also, and I don't know if this is the case for you, there could be some chained suffixes on the specific tree you are search, so that data possilby wouldn't even be available on the particular server you are performing the searches, which would lead of with a gap on your storage space requiered for the specific subtree.
I belive most LDAP server store their information on a DB of some sort, which makes the retrieving of the kind of information you are looking for quite hard.
Rp
# 3
Exactly. Robert is 100% correct.But in your case, since all organizations are defined (correctly) inside one Root Suffix, adding all the files sizes for that Root Suffix will lead you to the space used by all organizations.