On Mon, Oct 22, 2001 at 03:08:15PM -0300, Salvador Ramirez wrote: > I ported about 17000 unix nis accounts to openldap but the > LDAP authentication with qmail is very slow, 3 or 4 seconds and > when there are lots of email arriving these operations takes > the 100% of the two cpus of my server. I thought that the problem > could be the indexes of the openldap configuration, I then modify > slapd.conf for the indexes in this way: > > index cn,uid pres,eq,sub > index uidNumber eq > index objectClass eq
I'd use (at least): index uid eq index objectclass eq index mail eq index mailalternateaddress eq The last two are important. Also not that in OpenLDAP indexes are NOT built afterwards for "old" entries, you need to reload the whole database, there's an entry in OpenLDAP's FAQ somewhere how to do this. (beware that these infos are based on OpenLDAP 1.2.x, which IMHO is still the better choice over 2.0.x). Greetz Henning -- * Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de * * BS Web Services, Roedingsmarkt 14, 20459 Hamburg, Germany * Unix is very simple, but it takes a genius to understand the simplicity. (Dennis Ritchie)
