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

Re: Search filter



On Monday 16 August 2004 15:00, anis wrote:
> 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.
[..]
>
> and the indexes in slapd.conf:
> index cn,sn,id pres,eq,approx,sub

Did you run slapindex after you added that line to slapd.conf?

> Here is my generated filter:
>
> (&(objectClass=user)(cn=*Anis*)) doesn´t work
>
> (&(objectClass=user)(cn=*nis*)) works

The search with 3 and less characters work because the substring index is only 
used for string that are longer than 3 characters.

-- 
Ralf Haferkamp
SUSE LINUX AG, Maxfeldstrasse 5, D-90409 Nuernberg
T: +49-911-74053-0
F: +49-911-74053575 - Ralf.Haferkamp@suse.com