Proxy cache engine

LDAP cache is a special type of replica which holds entry corresponding to search filters instead of a subtree. A list of cacheable templates are specified at configuration time, and a query is cached only if it belongs to one of these templates.

Proxy cache configuration

This is an example database section configuration snippet for a caching server:

database      ldap
suffix        "dc=nowhere,dc=local"
rootdn        "dc=nowhere,dc=local"
uri           ldap://ldap.nowhere.local/dc=nowhere%2cdc=local
overlay       proxycache
proxyCache    bdb 100000 1 1000 1
proxyAttrset  0 mail telephonenumber
proxyTemplate (sn=) 0 3600
proxyTemplate (&(sn=)(givenName=)) 0 3600
cachesize     20
directory     /var/lib/ldap/dc=nowhere,dc=local
index         objectClass eq
index         cn,sn,uid,mail    pres,eq,sub

glider [ minitrack ] ikiwiki Creative Commons VIM powered