Note the parameter after your GUID syntax below is a 2. This tells me
you're doing a subtree search. So you're doing a subtree search, with
the baseDN being the object specified by the GUID, and finding all
matches below it ( that is the objectclass=* term). So it is subtree
"dumping" everything below that guid.
If you want to just dump the matching object, switch it to a base
search.

~Eric


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kern, Tom
Sent: Tuesday, April 12, 2005 7:15 AM
To: ActiveDir (E-mail)
Subject: [ActiveDir] LDP guid lookup

Quick question.
When i do a search by guid of a DC using ldp.exe, why do I get more than
one server as a result?
example-
dap_search_ext_s(ld, "<GUID=1825a294-808e-4036-adae-51144dee742f>", 2,
"(objectclass=*)", attrList,  0, svrCtrls, ClntCtrls, 999, 999 ,&msg)
Result <0>: (null)
Matched DNs: 
Getting 4 entries:
>> Dn: CN=NTDS
Settings,CN=MYRTLEBEACH,CN=Servers,CN=BA-MYRTLEBEACH,CN=Sites,CN=Configu
ration,DC=CSG-IT,DC=NET
>> Dn: CN=BA-FILE-SERVER,CN=NTDS
Settings,CN=MYRTLEBEACH,CN=Servers,CN=BA-MYRTLEBEACH,CN=Sites,CN=Configu
ration,DC=CSG-IT,DC=NET
>> Dn: CN=CSG-DS1,CN=NTDS
Settings,CN=MYRTLEBEACH,CN=Servers,CN=BA-MYRTLEBEACH,CN=Sites,CN=Configu
ration,DC=CSG-IT,DC=NET
>> Dn: CN=664b0575-574b-42fb-bc93-d76051ceb384,CN=NTDS
Settings,CN=MYRTLEBEACH,CN=Servers,CN=BA-MYRTLEBEACH,CN=Sites,CN=Configu
ration,DC=CSG-IT,DC=NET


I get 3 DC's- myrtlebeach,ba-fileserver,and csg-ds1.

Thanks
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to