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

(ITS#8402) indexing issue



Full_Name: Ramon Escriba
Version: openldap2-2.4.23-11.3.1.x86_64
OS: openSUSE 11.4
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (84.89.248.48)


Hi,
well, is not a bug, maybe an strange interaction between openldap & postfix
+saslauth.

I detected those logs:

Apr 13 16:40:42  <myldap> slapd[23125]: <= bdb_equality_candidates: (mailhost)
not indexed

So I thought, indexing may solve it. 
"mailhost" user attribute may only have 2 values, mail01 or mail02. Yes, maybe
is not the best thing to index, but I did a try.

So I added ?index mailhost eq? in slapd.conf. Slaptest ok. Rcldap stop;
slapindex; rcldap start.

But then, one mail system began to fail. I comment out the index, restarted
daemons & works fine again.

Saslauthd.conf query:

ldap_filter: ( &(uid=%u) (mailhost=mail02) (mActive=1)
(objectClass=CourierMailAlias))

Postfix queries:

query_filter = ( &(mail=%s) (mailhost=mail02) (mActive=1)
(objectClass=CourierMailAlias))

query_filter = ( &(maildrop=%s) (mailhost=mail02) (mActive=1)
(objectClass=CourierMailAlias))

Is just for curiosity. What do you thing it may happen? Why indexing mailhost
makes the query fail?? I think I miss something important.

Regards.