JSI Tip 7534. How can I use DsFind with attributes that require a Distinguished Name syntax?
December 7, 2003
NOTE: The text in the following Microsoft Knowledge Base article is provided so that the site search can find this page. Please click the Knowledge Base link to insure that you are reading the most current information.
Microsoft Knowledge Base article Q811509 contains:
View products that this article applies to.
IN THIS TASK
SUMMARY
Perform an Advanced Search
List of Objects and their Attributes that Require a Distinguished Name as a Value
SUMMARY
SUMMARY
When you perform an advanced search, for some objects' attributes you must know the distinguished name (also known as DN) of the object that you are searching against. Every object is stored in the directory database according to its relative distinguished name (also known as RDN) and parent identifier. Therefore, if you know the relative distinguished name of an object, you can determine the full distinguished name by following the references to the parent objects and finally to the root object. For example, the distinguished name of a user object might be
cn=UserName,ou=OrganizationalUnit,dc=DomainName,...dc=DomainName
, where the series of relative distinguished names (dc=DomainName) identifies the DNS domain of the object.
back to the top
Perform an Advanced Search
In Active Directory Users and Computers, right-click thedomain name that is at the top of the hierarchy.
From the Context menu, clickFind.
From the Find combo box, click the objectthat you want to search for (for example, Users, contacts, andgroups, Computers, Printers, andothers).
If multiple domains exist through trusts, you can use theIn combo box to select a different domain.
Click the Advanced tab.
Click to select a field from the list.
If the Condition: drop-down list does notinclude either the Starts with or the Endswith options, the Value: box may have to contain thedistinguished name of the object you are searching for. View the list ofobjects later in this article for more information.
Type the value.
Click Add to add the search condition tothe list.
Repeat steps 6 - 9 to add all the search conditions to thelist.
After the list is complete, click Find nowto generate a list of all the objects that meet the specifiedconditions.
back to the top
List of Objects and Their Attributes that Require a Distinguished Name as a Value
Users and contacts: Direct reports, manager, member of, X500 Distinguished Name.
Groups: Managed by, members, X500 Distinguished Name
Computers: Managed by Printers
Contact Shared folders: Managed by
Organizational Unit: Managed by
back to the top
The information in this article applies to:
Microsoft Windows Server 2003, 64-Bit Datacenter Edition
Microsoft Windows Server 2003, 64-Bit Enterprise Edition
Microsoft Windows Server 2003, Datacenter Edition
Microsoft Windows Server 2003, Enterprise Edition
Microsoft Windows Server 2003, Standard Edition
Microsoft Windows Small Business Server 2003, Premium Edition
Microsoft Windows Small Business Server 2003, Standard Edition
About the Author
You May Also Like