[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Search fails after adding index
- To: openldap-software@openldap.org
- Subject: Search fails after adding index
- From: Laurens Blankers <laurens.blankers@gmail.com>
- Date: Sun, 27 Sep 2009 14:36:51 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=z4Fo4AJN6kPVZ2eJwsHmZmbYgtu4ZFA3jKU5A2OIMP8=; b=NB0FpmzWKV5iWBiezE9hB9vQUFg5JxQreQ5KjAZP0O5iOK2gTnHWiJjJQM/klihT+m inrswXg80kOi9iEiR/OVG/BzFfe9aU5+5V5u8Q4bYKRNVdsmMfKRgME08F50xsTJjtjU z1VqvONbR/GPCouFCYids8SjBH+tsYbCo8wtE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=l2XBKaEOSSiECML0jSkBapAi+PvwBoXAfDxBKId9AuT1FC36pE2/jcgSdep6kTXWJj GVzmVfOvQadDmZAMv1Lit0HRjKOxtDGjr50xCkTbeIHHWGLSH0pyOlqKXqvYPVlSHzBS NSECSknikANhkYAIKXq1iDCJbuC+XxvSxH4fo=
Hi,
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 am running OpenLDAP 2.4.17 on Debian testing with the hdb backend.
TIA,
Laurens