Searching global catalog
- by Will I Am
If I do a query (I plan to use SDS.P) against the global catalog, what should the starting path be so I can search the entire GC?
I want to enumerate all users in GC, for example.
Let's say my gc has users for 3 domains (one parent, two children):
TEST.COM
ONE.TEST.COM
TWO.TEST.COM
and i'm on a computer in ONE.TEST.COM. I do not want to hardcode DC=XXX,DC=yyy, I would like to determine that at runtime.
TIA!
-Will