Re: Search fails after adding index

Michael Ströder <[email protected]>
Newsgroups gmane.network.openldap.general
Message-ID <[email protected]>
Laurens Blankers wrote:
> 
> I am trying to index searching on uid. However as soon as I add the
> following index to slapd.conf:
> 
> index           uid pres,eq,sub
> 
> stop slapd, run 'su openldap -c slapindex' and start slapd again,
> searching for any uid returns 0 results.
> 
> I am using the following search command:
> 
> ldapsearch -x "(&(objectClass=posixAccount)(uid=laurens))"
> 
> After removing the index line from slapd.conf and restarting slapd the
> search returns the desired result again. I set the loglevel to 480, but
> the log does not contain any entries which indicate a problem.
> 
> Why does adding indexes result in the search failing?

I note that you executed slapindex but maybe with wrong parameters or
something's wrong with ownership/permissions?

http://www.openldap.org/faq/data/cache/136.html

Ciao, Michael.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.