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

Search filter

I am using the openLDAP Server 2.2.6 integrated in Suse Linux 9.1.
I am trying to define some searches using filter, and I have noticed a strange behaviour. If the search word in the filter is longer than 3 letters, the search has no results. With max 3 letters results are found.
I have configure my search attribute like this:

attributetype (

NAME 'id'

EQUALITY caseIgnoreMatch

SUBSTR caseIgnoreSubstringsMatch



and the indexes in slapd.conf:

index cn,sn,id pres,eq,approx,sub

Here is my generated filter:

(&(objectClass=user)(cn=*Anis*)) doesn´t work

(&(objectClass=user)(cn=*nis*)) works


What am I doing wrong?