OK, what do I need to do in my code to simply query the global catalog
for the entire forest? I have New
DirectoryEntry("GC://") That seems not
to work. If I inspect it ?searchroot {System.DirectoryServices.DirectoryEntry} AuthenticationType:
Secure {1} Children:
{System.DirectoryServices.DirectoryEntries} Container: Nothing Guid: {"Unknown
error (0x80005000)"} Name: {"Unknown
error (0x80005000)"} NativeGuid:
{"Unknown error (0x80005000)"} NativeObject:
{"Unknown error (0x80005000)"} ObjectSecurity:
{"Unknown error (0x80005000)"} Options: {"Unknown
error (0x80005000)"} Parent: {"Unknown
error (0x80005000)"} Path: "GC://" Properties:
{System.DirectoryServices.PropertyCollection} SchemaClassName:
{"Unknown error (0x80005000)"} SchemaEntry:
{"Unknown error (0x80005000)"} Site: Nothing UsePropertyCache: True Username: Nothing We learn that
it’s more or less null, lots of unknown COM Errors. I’m running
this code as myself – I have Domain Admin an Enterprise Admin groups in
my token, I had thought there was some reason something like Network Service
couldn’t do this, but, that has obviously been ruled out. GC://mydomain.com
works fine, but then I don’t get the stuff in GC://otherdomain.com which
is in my forest. This is supposed to work … and it doesn’t. Ideas? Thanks, c -
312.731.3132 |
- [ActiveDir] GC Provider Brian Desmond
- Re: [ActiveDir] GC Provider Al Mulnick
- RE: [ActiveDir] GC Provider joe