Vote count:
0
Is there an efficient way to find all OUs that contain at least one User or Group object?
I'm currently pulling all OUs and then issuing new queries for each OU to find the User objects that meet my requirements. This works fine, but many of the OUs don't have User or Groups (or in some cases, no objects at all...) in them that meet my requirements. If I can determine ahead of time with a very simple query which OUs to look at that would shave off some of my execution time.
I'm currently using Linq-to-Ldap which is built around the LdapConnection
class and the System.DirectoryServices.Protocols
namespace.
Any ideas, or is this something that's not possible given ldap's apparent limited nature?
Thanks!
asked 2 mins ago
Find OUs that contain atleast one object of a specific class?
Aucun commentaire:
Enregistrer un commentaire