On Sat, Dec 04, 2004 at 12:19:42PM -0700, Stewart Walker wrote: > Redhat ES 3.1 > qmail-ldap-1.03-20040401.patch > qmail-smtpd-auth-0.30. > php-ldap-4.3.2-14.ent > courier-imap-ldap-3.0.3.20040411-1.3ES > openldap-2.1.22-8 > SquirrelMail version 1.4.2 > > Populated the ldap db with 5000 + accounts and slapd > really slowed down.. Qmail is complaining > > @4000000041b0f4191186a414 status: local 1/10 remote 0/20 > @4000000041b0f4331402759c delivery 1: deferral: > Timeout_while_performing_search_on_LDAP_server._(#4.4.3) > > Maybe I have to many index entries in slapd.conf? >
No you have not enough indices. >From QLDAPINSTALL: index objectclass,mail,mailAlternateAddress,uid eq,sub index accountStatus,mailHost,deliveryMode eq or what I currenlty have index objectclass eq index uid eq,sub index cn,sn,mail,mailAlternateAddress pres,eq,approx,sub > # Indices to maintain for this database > index uid pres,eq,sub > index objectClass eq,pres > index cn pres,eq,sub > index mail pres,eq,sub > index default sub > mailAlternateAddress is missing and so mail lookups are slow. > Was populating the uid with text .. i.e. jonnie > > Would it help if I used numeric .. ie 12345 > Does not matter. > Was hoping some one one might share their experience they've > had with this problem. > > Is a re-index necessary after ldapadd? > No. -- :wq Claudio
