[Date Prev][Date Next] [Chronological] [Thread] [Top]

wildcard searches with spaces in search filter

I am using Openldap 2.1.22 with Berkeley DB 4.1.25 on a RedHat 7.3
server.Backend database is bdb.

A query such as "ldapsearch -x '(cn=* martin *)'" returns results as if
the filter were '(cn=*martin*)'.

The logs show the following:

Aug 27 10:43:24 dir0 slapd[14189]: conn=226270 op=1 SRCH
base="dc=lanl,dc=gov" scope=2 filter="(cn=*martin*)" 

How can I preserve the spaces in the search filter?