Microsoft KB Archive/293779

= A Wildcard OR Search Request May Not Work Properly with Microsoft Metadirectory Services =

Article ID: 293779

Article Last Modified on 1/25/2006

-

APPLIES TO


 * Microsoft Metadirectory Services 2.1
 * Microsoft Metadirectory Services 2.2 Service Pack 1
 * Microsoft Metadirectory Services 2.2 Service Pack 1

-



This article was previously published under Q293779



SYMPTOMS
When you perform a wildcard OR (logical operation) search by means of a Web browser, the second item in the search may be ignored. For example, a Metadirectory Services server may be configured to wildcard hash a &quot;givenName&quot; and an &quot;OR&quot; search with the givenName &quot;Mar* OR Pet*&quot;. The search string may resemble: ldap://MMSserver:389/ou=Employees,dc=Microsoft,dc=Com??one?(&(|(givenName=mar*)(givenName=ron*))(sn=Doe)) In this example, the following people may be under the Employees organizational unit:
 * Mary Doe
 * Martha Doe
 * Mark Doe
 * Ron Doe
 * Ronald Doe

In the following result from the preceding search request, &quot;Ron&quot; and &quot;Ronald&quot; are missing:
 * Mary Doe
 * Martha Doe
 * Mark Doe

You can change the search string to: ldap://MMSserver:389/ou=Employees,dc=Microsoft,dc=Com??one?(&(|(givenName=ron*)(givenName=mar*))(sn=Doe)) In the following result from the second search request, &quot;Mary&quot;, &quot;Martha&quot; and &quot;Mark&quot; are missing:
 * Ron Doe
 * Ronald Doe



CAUSE
This problem can occur because the standard &quot;OR&quot; filters are not supported when a wildcard search is requested. The search filter code takes a shortcut when a wildcard character is encountered, and only performs one wildcard hash lookup. If both &quot;Ron*&quot; and &quot;Mar*&quot; are present in the filter, only &quot;Ron*&quot; is searched for.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Additional query words: mms metadirectory zoomit

Keywords: kbbug kbnofix KB293779

-

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

© Microsoft Corporation. All rights reserved.