Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XADM: The LDAP Query Field Size Is Limited to 260 Characters in Exchange System Manager


View products that this article applies to.

This article was previously published under Q313171

↑ Back to the top


Symptoms

When you create an address list, if you enter the Lightweight Directory Access Protocol (LDAP) query manually as follows, the query's field is limited to 260 characters:
  1. In Exchange System Manager, expand the Recipients container, and then right-click All Address Lists.
  2. Click New, and then click Address List.
  3. Type the name of your new address list, and then click Filter Rules.
  4. In the Find list, click Custom Search, and then click the Advanced tab.
  5. Enter the LDAP query (limited to only 260 characters).
For example, the following sample query cannot be entered in this query field in Exchange System Manager:
{(&(&(&(&(mailnickname=*)(|(&(objectCategory=person)(objectClass=user)(|(homeMDB=*)(msExchHomeServerName=*))))))(objectCategory=user)(|(department=DPEXTFGA)(department=DPEXTFGB)(department=DPEXTFGC)(department=DP000FGB)(department=DP000FGC)(department=DP000FDT))))}

↑ Back to the top


Cause

This issue can occur because this field is limited to 260 characters in Exchange System Manager.

↑ Back to the top


Workaround

To work around this issue, you need to use the ADSI Edit snap-in.

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 Exchange 2000 Server, or both. 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.

To work around this issue:
  1. Create a new address list.
  2. Start ADSI Edit, expand the Configuration container, and then expand the Services container. Expand the Microsoft Exchange container, expand the organization_name container, and then expand the Address Lists container.
  3. Expand the All Address Lists container, and then click new_list (where new_list is the name of the address list that you created in step 1). Right-click new_list, and then click Properties in the shortcut menu.
  4. In the Properties dialog box, locate the pureportedsearch attribute under Select a property to view.
  5. Fill this attribute with your LDAP query.

    Note The limit for the purportedSearch attribute in ADSI Edit is 2,048 characters.
  6. Validate, and then quit ADSI Edit.
  7. In Exchange System Manager, right-click the new address list, and then open the properties. Click Preview to run the query.

↑ Back to the top


Status

This behavior is by design.

↑ Back to the top


More information

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
312299� XADM: How to Edit an LDAP Query in Custom Search by Using ADSI Edit

↑ Back to the top


Keywords: KB313171, kbprb

↑ Back to the top

Article Info
Article ID : 313171
Revision : 7
Created on : 2/28/2007
Published on : 2/28/2007
Exists online : False
Views : 304