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

Re: indexing



Thanks that fixed it. :-)

I just moved indexing part below the part that defines the database.

Here is the excerpt for people that have a similar problem in the future.

When indexing is above the ldbm definitions, it doesn't work.

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

database        ldbm
suffix          "dc=mycoll, dc=edu"
rootdn          "cn=admin, dc=mycoll, dc=edu"
rootpw secret
replogfile /var/lib/ldap/replication.log
directory       /var/lib/ldap/

defaultaccess read

index cn,sn,uid,mail eq
index objectClass eq

#access Control list
...


> On Tue, Apr 09, 2002 at 09:42:29AM +0530, Jatin Nansi wrote:
> Put the index directive inside a database definition.
> ie, after u specify the database directive

> Jatin



>> I am having a little bit of trouble with indexing.
>>
>>  I have been trying to change it on my test database.
>>
>> Can indexing change once the database is created ?
>>
>> Or is indexing a prerequisite to the database ?
>>
>> Apr  8 23:27:50 www slapd[3900]: /etc/ldap/slapd.conf: line 26: unknown
>> directive "index" outside backend info and database definitions
>> (ignored)
>> Apr  8 23:27:50 www slapd[3901]: slapd starting
>>
>> I am trying to setup indexing by uid and dn.
>>
>> Shouldn't this work ?