September 2003
Intermediate to advanced
624 pages
15h 49m
English
You want to view one or more attributes of an object.
Open LDP.
From the menu, select Connection → Connect.
For Server, enter the name of a domain controller or domain that contains the object.
For Port, enter 389.
Click OK.
From the menu, select Connection → Bind.
Enter credentials of a user that can view the object (if necessary).
Click OK.
From the menu, select View → Tree.
For BaseDN, type the DN of the object you want to view.
For Scope, select Base.
Click OK.
> dsquery * "<ObjectDN>" -scope base -attr *For Windows 2000, use this command:
> enumprop "LDAP://<ObjectDN>"' This code prints all attributes for the specified object.
' ------ SCRIPT CONFIGURATION ------
strObjectDN = "<ObjectDN>" ' e.g. cn=jsmith,cn=users,dc=rallencorp,dc=com ' ------ END CONFIGURATION --------- DisplayAttributes("LDAP://" & strObjectDN) Function DisplayAttributes( strObjectADsPath ) set objObject = GetObject(strObjectADsPath) objObject.GetInfo 'Declare the hash (dictionary), constants and variables 'Values taken from ADSTYPEENUM set dicADsType = CreateObject("Scripting.Dictionary") dicADsType.Add 0, "INVALID" dicADsType.Add 1, "DN_STRING" dicADsType.Add 2, "CASE_EXACT_STRING" dicADsType.Add 3, "CASE_IGNORE_STRING" dicADsType.Add 4, "PRINTABLE_STRING" dicADsType.Add 5, "NUMERIC_STRING" dicADsType.Add 6, "BOOLEAN" dicADsType.Add 7, "INTEGER" dicADsType.Add 8, "OCTET_STRING" dicADsType.Add ...