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

Re: Index problems: search results returning no responses





--On Wednesday, July 13, 2005 7:29 PM +0200 Graham Leggett <minfrin@sharp.fm> wrote:

Hi all,

I am running openldap v2.2.13 (as packaged with RHEL4), and have run into
a problem with indexes.

I added the following line to the slap.conf to enable indexing on the
mailAlternateAddress attribute as provided by qmail.schema:

index mailAlternateAddress             eq,pres,sub

Openldap on startup made no complaints about the above line or logged any
error messages at all - however all search queries that involved the
mailAlternateAddress attribute started quietly returning zero results.

As no obvious error message was logged, and as the LDAP server worked
fine apart from queries for mailAlternateAddress, this problem was only
picked up after a day of bounced email on people' alias email addresses.

Is this a known problem, and is there a solution or patch of some kind to
fix it?

Did you run slapindex to generate the indices for your existing database?

If you modify slapd.conf with new indices, OpenLDAP will only add it for new/changed entries (2.3 with back-config actually does reindexing on the fly).

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html