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

Search filter



Hi,
 
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 ( 1.3.6.1.4.1.18677.1.2.1.1.8

NAME 'id'

EQUALITY caseIgnoreMatch

SUBSTR caseIgnoreSubstringsMatch

SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{50}

SINGLE-VALUE)

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?