September 2003
Intermediate to advanced
624 pages
15h 49m
English
You want to find the application partitions that have been created in a forest.
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 Partitions
container (e.g., cn=partitions,cn=configuration,dc=rallencorp, dc=com).
For Filter, enter:
(&(objectcategory=crossRef)(systemFlags:1.2.840.113556.1.4.803:=5))
For Scope, select One Level.
Click the Options button.
For Attributes, type dnsRoot.
Click OK.
Click Run.
Use the following command to find all of the application partitions in a forest:
> dsquery * cn=partitions,cn=configuration,<ForestDN> -filter[RETURN]
"(&(objectcategory=crossRef)(systemFlags:1.2.840.113556.1.4.803:=5))"[RETURN]
-scope onelevel -attr dnsRoot' This code displays the application partitions contained in the ' default forest set objRootDSE = GetObject("LDAP://RootDSE") strBase = "<LDAP://cn=Partitions," & _ objRootDSE.Get("ConfigurationNamingContext") & ">;" strFilter = "(&(objectcategory=crossRef)" & _ "(systemFlags:1.2.840.113556.1.4.803:=5));" strAttrs = "cn,ncName;" strScope = "onelevel" set objConn = CreateObject("ADODB.Connection") objConn.Provider = "ADsDSOObject" objConn.Open "Active Directory ...