LDAP supports substring searching, which is not exactly the same as wildcards. Examples of subscript filters: '(uid=abc*)' and '(mail=' john@ *.com')' , etc.
As a rule, it is convenient to contact the directory services administrator and request any attributes that you intend to use in the filter for indexing to find the substring. Professional LDAP servers support substring search, and for indexes to be indexed, you may need to specify a minimum number of characters. For example, if the server is a Sun Directory server (Sun ONE, DSEE, or SJS DS), before the '*' symbol before the indexes become effective, two characters are required before the '*' symbol, for example, '(mail=ab*)' may use indexes, while '(mail=a*)' may not use indexes.
source share