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

Error: "no indexes selected"



Hi,

I have upgraded from openldap.1.2.11 to openldap 2.0.3.
Should I do some changes in the slapd.conf for the "index" section?
The following index definitons work for 1.2.11.
(
(index cn,sn,uid
(index objectclass pres,eq
(index default none
(

However with 2.0.3, I get the error: 

(/usr/local/etc/openldap/slapd.conf: line 58: no indexes selected

My whole slapd.conf file is below.
What is wrong?


slapd.conf
--------------
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.4 2000/08/26
17:06:18 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /usr/local/etc/openldap/schema/core.schema

# Define global ACLs to disable default read access.

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral       ldap://root.openldap.org

pidfile         /usr/local/var/slapd.pid
argsfile        /usr/local/var/slapd.args

# Load dynamic backend modules:
# modulepath    /usr/local/libexec/openldap
# moduleload    back_ldap.la
# moduleload    back_ldbm.la
# moduleload    back_passwd.la
# moduleload    back_shell.la

#######################################################################
# ldbm database definitions
#######################################################################

database        ldbm
#suffix         "dc=my-domain, dc=com"
suffix          "o=gantek"
#rootdn         "cn=Manager, dc=my-domain, dc=com"
rootdn          "cn=root, o=gantek"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw          secret
# The database directory MUST exist prior to running slapd AND 
# should only be accessable by the slapd/tools. Mode 700 recommended.

directory       /usr/local/var/openldap-ldbm
# Indices to maintain
#index  objectClass     eq

lastmod on
access to dn=".*,ou=Roaming,o=gantek" by dnattr=owner write

access to attr=userpassword
        by self write
        by * none

access to attr=gsmphone
        by domain=.*\.fw\.domain\.com read
        by * none

access to dn=".*,ou=Staff,o=gantek"
        by dn="uid=canevi,ou=People,o=gantek" write
        by * read

index cn,sn,uid
index objectclass pres,eq
index default none






-----------------------------------------------------------------------

Oguz Yilmaz
System Support Engineer
GANTEK Computer Consultancy
SUN Authorized Reseller
Office: +90 312 446 78 00
Fax:    +90 312 446 36 66
Mobile: +90 532 620 84 39
E-Mail: oguz.yilmaz@gantek.com

"These are my opinions, which are not necessarily shared by my employer"

----- End forwarded message -----

-- 



Oguz Yilmaz
Sistem Destek Muhendisi
GANTEK Bilgisayar Danismanlik
SUN Authorized Reseller
Ofis:  +90 312 446 78 00
Faks:  +90 312 446 36 66
Mobil: +90 532 620 84 39
E-Posta: oguz.yilmaz@gantek.com

"Bunlar benim goruslerimdir ve isverenim tarafindan paylasilmayabilir."

-----------------------------------------------------------------------

Oguz Yilmaz
System Support Engineer
GANTEK Computer Consultancy
SUN Authorized Reseller
Office: +90 312 446 78 00
Fax:    +90 312 446 36 66
Mobile: +90 532 620 84 39
E-Mail: oguz.yilmaz@gantek.com

"These are my opinions, which are not necessarily shared by my employer"