Microsoft KB Archive/312299

= How to edit an LDAP query in custom search by using ADSI Edit =

Article ID: 312299

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Exchange Server 2003 Enterprise Edition
 * Microsoft Exchange Server 2003 Standard Edition
 * Microsoft Exchange 2000 Server Standard Edition
 * Microsoft Windows Small Business Server 2003 Premium Edition
 * Microsoft Windows Small Business Server 2003 Standard Edition

-



This article was previously published under Q312299



SUMMARY
This article describes how to use ADSI Edit to edit Lightweight Directory Access Protocol (LDAP) queries.



MORE INFORMATION
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, Microsoft Exchange Server 2003, or both Windows and Exchange. 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. When you want to create your own Global Address List, Address List, or recipient policy, you can specify your own LDAP criteria. To do so:
 * 1) From the Find drop-down menu, click Custom Search, and then click the Advanced tab.
 * 2) In the Enter LDAP query box, type the LDAP query that you want to run. This information is displayed in the filter rules box of the General tab of the list or policy that you want to create.

This LDAP query box accepts queries that are less than 260 characters. However, to enter LDAP queries that are more than 260 characters, follow these steps after you install Support Tools.

Note On the Microsoft Windows 2000 CD, ADSI Edit is included in Microsoft Windows 2000 Support Tools. On the Microsoft Windows Server 2003 CD, ADSI Edit is included in Windows Support Tools. To install Support Tools for Windows 2000, use the Setup.exe program that is located in the Support\Tools\ folder. To install Support Tools for Windows Server 2003, use the SUPTOOLS.MSI program that is located in the Support\Tools folder.&quot;
 * 1) Click Start, point to Programs, point to Windows 2000 Support Tools, click Tools, and then click ADSI Edit.

Note If ADSI Edit is not available on the Tools menu after you run the Support Tools setup, click Start, click Run, type Adsiedit.msc, and then click OK to start Adsiedit.msc.
 * 1) Locate the Address List container that you want to change under Configuration container, and then click Properties.
 * 2) On the Attributes tab, clickpurportedSearchin the Select a property to view field.

Note For Windows Server 2003, click purportedSearch in the Attribute box on the Attribute editor tab, and then click Edit.
 * 1) Type the LDAP query in the Edit attribute (or Value) box.

Note that the value is displayed in the filter rules box of the General tab of the object.

Additional query words: XADM

Keywords: kbinfo KB312299

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.