[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Filter Problem
On Mon, Feb 20, 2006 at 04:04:29PM +0800, Kenny Chong wrote:
> i have three identical filter
>
> first:
> (&(|(mail=a*)(givenName=a*))(objectClass=inetOrgPerson))
>
> second:
> (&(objectClass=inetOrgPerson)(|(mail=a*)(givenName=a*)))
>
> third:
> (|(&(objectClass=inetOrgPerson)(mail=a*)(&(objectClass=inetOrgPerson)(givenName=a*))
>
> however, the first filter i didn't get any result, but the second and third
> filter i get what i want.
>
> anyone know what is the problem with the first filter? the entries i want
> to search for contains all the three attribute (mail, givenName,
> objectClass)
Have you tried reindexing the database? Also, note that by default a
substring filter with only one character (like mail=a*) won't use indexes,
being very slow (perhaps it's timing out?).
Newer openldap (like latest 2.3.x) has this substring "limit"
configurable in slapd.conf.