[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Proxy Caching
Title: Message
I am trying to set
up caching with following slapd.conf .
I am using version
2.2.5 of OpenLDAP with BerkeleyDB 4.2 on both SUSE 8.1 and SUN Solaris 2.9, the
results are the same on both machines.
lastmod off
database ldap
suffix
"dc=LdabAbc,dc=com"
overlay
proxycache
proxycache bdb 100000 2 1000 10
proxyattrset 0
cn
proxyattrset 1 mail
cn uid
proxytemplate
(&(cn=)(sn=)) 0 3600
proxytemplate (sn=) 0
3600
proxytemplate (mail=) 0 3600
proxytemplate (uid=) 1
3600
cachesize 20
directory
/usr/local/Proxy/data
index objectclass
eq
index cn,sn,uid,mail
pres,eq,sub
Query 1:
ldapsearch -h "proxy.LdapABC.com" -b
"dc=LdapAbc,dc=com" "(sn=Vogl*)" cn
gives the correct result. When I repeat however the
query I get:
No such object
Query 2:
ldapsearch -h "proxy.LdapABC.com" -b
"dc=LdapAbc,dc=com" "(uid=rv33100)"
cn
gives the correct result. When I repeat the question I
get also the correct result. However the cache is not used at
all.
in the log file i get:
QUERY NOT
ANSWERABLE
QUERY NOT
CACHEABLE
Someone out there who get's the cache working
?
Thanx a lot for any tip
Reinhard