Basically, I'm developing an app for managing Active Directory, I've added a big layer of 'security' that is the ability to assign to specific users what OU GUIDs they're allowed to access/search through.
The problem I'm facing now is there doesn't seem to be a nice way to query AD taking into account this sometimes large collection of GUIDs (1200ish) and ONLY returning results from these specific OUs.
Does anyone know if there's a way to use multiple DirectorySearchers or the like to achieve this without hitting performance too hard?
-- This would be dead easy in SQL... :-/