[Date Prev][Date Next]
I've been trying to add a cache to the ldap backend, but I can't figure out
why it doesn't work.
--- slapd.conf ---
proxycache bdb 1000 1 500 1000
attrset 0 sn cn title
proxytemplate (sn=) 0 1000
index objectclass pres,eq
index cn,sn,uid,title pres,eq,sub
The first time an entry is accessed everything is fine, but any other attempt
leads to a successful but empty response. The entries are cached but are not
returned to the querying application.
In the logfile I see QUERY ANSWERABLE and QUERY CACHEABLE but also something
bdb_index_read: failed (-30990)
bdb_search: no candidates
I get the same even with ldbm.
I am using HEAD openldap and bdb 4.2.52.