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

Re: Search filter

thanks. I didn´t run slapindex. But I have deleted the wohole DB and set it
up for new. Now it seems to work.
Do you mean I can´t perform searches like *a* beacus it is small er than 3
wher can I find such infos about indices?

----- Original Message ----- 
From: "Ralf Haferkamp" <rhafer@suse.de>
To: <openldap-software@OpenLDAP.org>
Sent: Monday, August 16, 2004 6:21 PM
Subject: 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
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