17.5. Finding the Application Partitions Hosted by a Server
Problem
You want to find the application partitions that a particular server replicates. Before you decommission a server, it is good to check to see if it hosts any application partitions and if so, add another replica server to replace it.
Solution
Using a graphical user interface
Open LDP.
From the menu, select Connection → Connect.
For Server, enter the name of a DC.
For Port, enter 389.
Click OK.
From the menu, select Connection → Bind.
Enter a user and password with the necessary credentials.
Click OK.
From the menu, select Browse → Search.
For BaseDN, type the DN of the
Partitionscontainer (e.g., cn=partitions,cn=configuration,dc=rallencorp, dc=com).For Filter, enter:
(&(objectcategory=crossRef)(systemFlags:1.2.840.113556.1.4.803:=5) (msDS-NC-Replica-Locations=cn=NTDS Settings,cn=
<DomainControllerName>, cn=servers,cn=<SiteName>,cn=sites, cn=configuration,<ForestDN>))For Scope, select One Level.
Click the Options button.
For Attributes, type
dnsRoot.Click OK.
Click Run.
Using a command-line interface
Use the following command to find all of the application partitions
hosted by a domain controller. To run this command, you need the
distinguished name of the forest root domain
(<ForestDN>), the common name of the
DC’s server object
(<DomainControllerName>), and the
common name of the site object the server is in
(<SiteName>).
> dsquery * "cn=partitions,cn=configuration,<ForestDN>" -scope onelevel -attr[RETURN] dnsRoot -filter "(&(objectcategory=crossRef)(systemFlags:1.2.840.113556.1.4.803:=5) ...Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access