Quantcast
Viewing all articles
Browse latest Browse all 31638

Different Results from Global Catalog using "GC" moniker versus "LDAP://domain:3268"???

Using PowerShell, I'm testing connectivity to the Global Catalog.  I was trying to answer a question for someone when I came up with a problem myself.  My understanding is that the "GC" monkier for connecting is/should be the same as the LDAP://domain:3268 syntax?   ...but my testing would indicate otherwise.

$s1 = [adsisearcher]'cn=dc01'
$s1.SearchRoot = [adsi]"GC://domainname"
$res1 = $s1.FindAll()

$s2 = [adsisearcher]'cn=dc01'
$s2.SearchRoot = [adsi]"LDAP://domainname:3268"
$res2 = $s2.FindAll()

$res1 returns 4 paths
$res2 returns 2 paths

The two extra paths in $res1 indicate the ability for the GC monkier to query the configuration partition as well as the domain partition... or maybe it's that for some reason the use of the LDAP moniker with GC port designator is not reporting this added information?  I don't know what the normal use-case would be but I'm getting different results.

And I guess my question is, can anyone explain why?


Viewing all articles
Browse latest Browse all 31638

Trending Articles