RE: [ActiveDir] List all Dc's in a site

2001-07-05 Thread Robbie Allen
Title: Message



When 
are there anything but DCs defined under a site (i.e. server 
object)?

  
  -Original Message-From: Steve Judd 
  [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 10:45 
  PMTo: [EMAIL PROTECTED]Subject: RE: 
  [ActiveDir] List all Dc's in a site
  Do a 
  subtree search of the DS in the site of interest for NTDS-Settings 
  objects. The parent of each object returnedis a Server object for 
  a DC. You can use any of several query API's to do the search and 
  enumerate the results. I favor IDirectorySearch.
  
  -s
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Deepa 
KumthekarSent: Tuesday, June 19, 2001 5:30 PMTo: 
[EMAIL PROTECTED]Subject: [ActiveDir] List all Dc's in 
a site
Hi ,  Is there any 
API to find all domain controllers in a site. I know 
one which lists all servers 'DsListServersInSite' but I don't want 
all servers, I want only DC's. Thanks, Deepa 



RE: [ActiveDir] List all Dc's in a site

2001-07-05 Thread Steve Judd
Title: Message



Nothing stops you from creating server objects in a site, and there 
is no guarantee that the server objects found in a Site container represent 
DC's.

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Robbie 
  AllenSent: Wednesday, July 04, 2001 11:37 PMTo: 
  '[EMAIL PROTECTED]'Subject: RE: [ActiveDir] List all 
  Dc's in a site
  When 
  are there anything but DCs defined under a site (i.e. server 
  object)?
  

-Original Message-From: Steve Judd 
[mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 10:45 
PMTo: [EMAIL PROTECTED]Subject: RE: 
[ActiveDir] List all Dc's in a site
Do 
a subtree search of the DS in the site of interest for NTDS-Settings 
objects. The parent of each object returnedis a Server object 
for a DC. You can use any of several query API's to do the search and 
enumerate the results. I favor IDirectorySearch.

-s

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Deepa 
  KumthekarSent: Tuesday, June 19, 2001 5:30 PMTo: 
  [EMAIL PROTECTED]Subject: [ActiveDir] List all Dc's 
  in a site
  Hi ,  Is there 
  any API to find all domain controllers in a site. I know one which lists all servers 'DsListServersInSite' but I 
  don't want all servers, I want only DC's. 
  Thanks, Deepa 



RE: [ActiveDir] List all Dc's in a site

2001-07-05 Thread Robbie Allen
Title: Message



So 
when/why would that ever happen?

  
  -Original Message-From: Steve Judd 
  [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 05, 2001 9:12 
  AMTo: [EMAIL PROTECTED]Subject: RE: 
  [ActiveDir] List all Dc's in a site
  Nothing stops you from creating server objects in a site, and 
  there is no guarantee that the server objects found in a Site container 
  represent DC's.
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Robbie 
AllenSent: Wednesday, July 04, 2001 11:37 PMTo: 
'[EMAIL PROTECTED]'Subject: RE: [ActiveDir] List all 
Dc's in a site
When are there anything but DCs defined under a site (i.e. server 
object)?

  
  -Original Message-From: Steve Judd 
  [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 10:45 
  PMTo: [EMAIL PROTECTED]Subject: RE: 
  [ActiveDir] List all Dc's in a site
  Do a subtree search of the DS in the site of interest for 
  NTDS-Settings objects. The parent of each object returnedis a 
  Server object for a DC. You can use any of several query API's to do 
  the search and enumerate the results. I favor 
  IDirectorySearch.
  
  -s
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Deepa 
KumthekarSent: Tuesday, June 19, 2001 5:30 PMTo: 
[EMAIL PROTECTED]Subject: [ActiveDir] List all 
Dc's in a site
Hi ,  Is there 
any API to find all domain controllers in a site. I know one which lists all servers 'DsListServersInSite' but I 
don't want all servers, I want only DC's. 
Thanks, Deepa 
  


RE: [ActiveDir] List all Dc's in a site

2001-07-05 Thread Fugleberg, David A

One instance I can think of is Exchange 2000...the ADC (Active Directory
Connector) shows up in a folder called Exchange Settings which appears
under a Server object in the Servers container for a site.  In our case,
the Exchange 2000 Server is not a DC, so the Server object has no  NTDS
settings object under it.  That's one case where just enumerating the
server objects under a site would show servers that are not DCs; I'm
betting there will be a lot more as more services are AD-enabled.
Dave

-Original Message-
From: Robbie Allen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 11:36 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [ActiveDir] List all Dc's in a site


So when/why would that ever happen?

-Original Message-
From: Steve Judd [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 05, 2001 9:12 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] List all Dc's in a site


Nothing stops you from creating server objects in a site,  and there is
no guarantee that the server objects found in a Site container represent
DC's.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Robbie Allen
Sent: Wednesday, July 04, 2001 11:37 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [ActiveDir] List all Dc's in a site


When are there anything but DCs defined under a site (i.e. server
object)?

-Original Message-
From: Steve Judd [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, June 19, 2001 10:45 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] List all Dc's in a site


Do a subtree search of the DS in the site of interest for NTDS-Settings
objects.  The parent of each object returned is a Server object for a
DC.  You can use any of several query API's to do the search and
enumerate the results.  I favor IDirectorySearch.
 
-s

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Deepa Kumthekar
Sent: Tuesday, June 19, 2001 5:30 PM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] List all Dc's in a site



Hi , 
Is there any API to find all domain controllers in a site. 
I know one which lists all servers 'DsListServersInSite' but I don't
want 
all servers, I want only DC's. 
Thanks, 
Deepa 

List info: http://www.activedir.org/mail_list.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/



RE: [ActiveDir] List all Dc's in a site

2001-07-05 Thread Steve Judd
Title: Message



(a) 
when someone manually creates one through the UI or 
propgrammatically
(b) 
when some application decides to use the Site/Server/Settings architecture for 
its own purposes. This is not only possible but likely, for example for 
FRS, Exchange, SQL and other products and services that perform replication and 
want to be Site aware.

My 
point is that you cannot assume that a Server object represents a DC. That 
is why they are called "Server" objects, not "Domain Controller" oobjects. 


  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Robbie 
  AllenSent: Thursday, July 05, 2001 9:36 AMTo: 
  '[EMAIL PROTECTED]'Subject: RE: [ActiveDir] List all 
  Dc's in a site
  So 
  when/why would that ever happen?
  

-Original Message-From: Steve Judd 
[mailto:[EMAIL PROTECTED]] Sent: Thursday, July 05, 2001 9:12 
AMTo: [EMAIL PROTECTED]Subject: RE: 
    [ActiveDir] List all Dc's in a site
Nothing stops you from creating server objects in a site, and 
there is no guarantee that the server objects found in a Site container 
represent DC's.

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Robbie 
  AllenSent: Wednesday, July 04, 2001 11:37 PMTo: 
  '[EMAIL PROTECTED]'Subject: RE: [ActiveDir] List all 
  Dc's in a site
  When are there anything but DCs defined under a site (i.e. server 
  object)?
  

-Original Message-From: Steve Judd 
[mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 10:45 
PMTo: [EMAIL PROTECTED]Subject: RE: 
    [ActiveDir] List all Dc's in a site
Do a subtree search of the DS in the site of interest for 
NTDS-Settings objects. The parent of each object returnedis 
a Server object for a DC. You can use any of several query API's 
to do the search and enumerate the results. I favor 
IDirectorySearch.

-s

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Deepa 
  KumthekarSent: Tuesday, June 19, 2001 5:30 PMTo: 
  [EMAIL PROTECTED]Subject: [ActiveDir] List all 
  Dc's in a site
  Hi ,  Is 
  there any API to find all domain controllers in a site. 
  I know one which lists all servers 
  'DsListServersInSite' but I don't want all 
  servers, I want only DC's. Thanks, 
  Deepa