You're not getting more than one server, you are getting more than one
object.  To be precise, you getting the object whose GUID matches your base
DN plus its hierarchical subordinates, this behavior occurs because the
'scope' of your query was set to one-level or subtree, set the scope to base
if you wish to see only the object that owns the GUID.

--
Dean Wells
MSEtechnology
* Email: [EMAIL PROTECTED]
http://msetechnology.com


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kern, Tom
Sent: Tuesday, April 12, 2005 10: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=Conf
>> iguration,DC=CSG-IT,DC=NET
>> Dn: CN=BA-FILE-SERVER,CN=NTDS 
>> Settings,CN=MYRTLEBEACH,CN=Servers,CN=BA-MYRTLEBEACH,CN=Sites,CN=Conf
>> iguration,DC=CSG-IT,DC=NET
>> Dn: CN=CSG-DS1,CN=NTDS 
>> Settings,CN=MYRTLEBEACH,CN=Servers,CN=BA-MYRTLEBEACH,CN=Sites,CN=Conf
>> iguration,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=Conf
>> iguration,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