[Date Prev][Date Next] [Chronological] [Thread] [Top]

LDAP Search Filter Help Requested



Calling all LDAP search filter gurus:

Given an object class hierarchy of the following:

	A: objectclass=country
	 |
	B: objectclass=organization
	 |		
	C: objectclass=organzationalunit
	 |
	D: objectclass=local1
	 |
	E: objectclass=local2

where there may exist 0 or more 'local2' objects for a given 'local1'
object, can one construct an LDAP search filter that would return only those
'local1' objects that have one or more subordinate 'local2' objects?  To
complicate matters, there are multiple 'organization' objects served by the
LDAP server, with multiple levels of 'organizationalunit' objects beneath
these 'organization' objects. In essence, I'm attempting to retrieve the DN
of those 'local1' objects which have children entries. 

Is this possible in a single LDAP query? Or is a traversal of the tree via
multiple searches using 'LDAP_SCOPE_ONELEVEL' with a different base object
the only method available?

Ken McGarrahan
Southwestern Bell Telephone
*	E-Mail: km4155@sbc.com