Use the Exchange System Manager Utility
To use Exchange System Manager to run an LDAP query to create a custom search, follow these steps:
- Start the Exchange Server 2003 System Manager utility.
- Expand Recipients, right-click All Address Lists, point to New, and then click Address List.
- In the Address List name box, type a descriptive name for the address list, and then click Filter Rules.
- In the Find list, click Custom Search.
- Click the Advanced tab.
- Type the LDAP query. For example, type givenname=firstname (where firstname is the first name of the user who you want to find).
Note This query field is limited and may not be sufficient for the length of the LDAP query that you want to perform. - Click OK, and then click Finish.
The new address list that contains the custom LDAP query is saved under All Address Lists.
Use the ADSI Edit Utility
Warning If you use the ADSI Edit snap-in, the LDP utility, or any other LDAP version 3 client, and you incorrectly modify the attributes of Active Directory objects, you can cause serious problems. These problems may require you to reinstall Microsoft Windows 2000 Server, Microsoft Windows Server 2003, Microsoft Exchange 2000 Server, or both Windows and Exchange 2000 Server. Microsoft cannot guarantee that problems that occur if you incorrectly modify Active Directory object attributes can be solved. Modify these attributes at your own risk. Note You can use the ADSI Edit snap-in to work around the 256-character limit of the Exchange System Manager LDAP query.
- Start the ADSI Edit utility. This utility is included on the Windows 2000 Server CD-ROM or the Windows Server 2003 CD-ROM. To install the ADSI Edit utility on a Windows 2000-based system, run Setup.exe from the Support\Tools folder on the Windows 2000 CD-ROM. On a Windows Server 2003-based system, right-click Suptools.msi in the Support\Tools folder on the Windows Server 2003 CD-ROM, and then click Install. To start this utility, click Start, click Run, type adsiedit.msc, and then click OK.
- Expand the Configuration container, and then expand CN=Configuration,DC=example,DC=com (where example.com is the name of your domain).
- Expand CN=Services, expand CN=Microsoft Exchange, expand CN=OrganizationName (where OrganizationName is the name of your organization), expand CN=Address Lists Container, and then expand CN=All Address Lists.
- Right-click the address list where you want to create a custom LDAP search, and then click Properties.
- In the Attributes list, click purportedSearch, and then click Edit.
- In the Value box, type the LDAP query that you want, and then click OK.
- Click Apply, click OK, and then quit the ADSI Edit utility.
You may have to force replication between domain controllers to activate this new query.
No comments:
Post a Comment