10.10.1 ProblemYou want to view the attributes of a class. 10.10.2 Solution10.10.2.1 Using a graphical user interface
10.10.2.2 Using a command-line interfaceIn the following command, replace <ClassCommonName> with the common name (not LDAP display name) of the class you want to view: > dsquery * cn=<ClassCommonName>,cn=schema,cn=configuration,<ForestRootDN> -scope[RETURN] base -attr * 10.10.2.3 Using VBScript' This code prints out the attributes for the specified class. ' Recipe 4.2 for the code for the DisplayAttributes( ) function. ' ------ SCRIPT CONFIGURATION ------ ' Set to the common name (not LDAP display dame) ' of the class you want to view. strClassName = "<ClassCommonName>" ' e.g. user ' ------ END CONFIGURATION --------- set objRootDSE = GetObject("LDAP://RootDSE") set objClass = GetObject("LDAP://cn=" & strClassName & "," & _ objRootDSE.Get("schemaNamingContext")) objClass.GetInfo WScript.Echo "Properties for " & strClassName DisplayAttributes(objClass.ADsPath) 10.10.3 DiscussionSee Table 10-1 for a list of the important classSchema attributes and their descriptions. 10.10.4 See AlsoRecipe 4.2 for viewing the attributes of an object |