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

Re: Slapindex not working?





--On Thursday, January 20, 2005 3:08 PM +1100 Dave Horsfall <daveh@ci.com.au> wrote:

[ Yes, I read the archives! ]

OpenLDAP 2.2.17, compiled from FreeBSD 4.10-STABLE ports.

Using Ryan Matteson's cool "ldap-stats.pl" script, I discovered I had an
unindexed attribute "uid".  So, I update slapd.conf and run slapindex,
yet  I'm still seeing these in the log:

Jan 20 14:38:34 guido slapd[56151]: <= bdb_substring_candidates: (uid)
index_param failed (18)

Yes, I shut down SLAPD :-)

slapd.conf:
index   employeeNumber,uid,sn,cn,ciApp,ciHost           eq,pres,sub
(was just "eq,pres")

command:
ldapsearch -C -v -LLL -H "$LDAPURI"
"(&(objectClass=ciEmployee)(uid=dave*))" \         dn uid cn sn
telephoneNumber

The odd thing was, it improved wall-clock time by an order of magnitude,
so it did *something*.

Have you read this thread from earlier this week?:

Solved: index_param failed

It may well be that is what you are seeing, and have nothing to do with your openldap indexing. Your comment on the improved time by an order of magnitude certainly suggests this.

--Quanah


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

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin