[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: pcache overlay, caching DNs
- To: Roel van Meer <roel@1afa.com>, openldap-technical@openldap.org
- Subject: Re: pcache overlay, caching DNs
- From: Howard Chu <hyc@symas.com>
- Date: Sat, 9 Sep 2017 17:34:59 +0100
- In-reply-to: <WM!ded45c800d3a1c94e0b6017436ac37298b12679a3b9d652374db1200faef9a1f514866305c3bcf139f19524be75b7ca8!@mailstronghold-2.zmailcloud.com>
- References: <cone.1504790257.384639.11025.1000@bollix> <WM!ded45c800d3a1c94e0b6017436ac37298b12679a3b9d652374db1200faef9a1f514866305c3bcf139f19524be75b7ca8!@mailstronghold-2.zmailcloud.com>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0 SeaMonkey/2.53a1
Roel van Meer wrote:
Hi list!
I've been figuring out how to get the pcache overlay to work, but I'm stuck
with one thing: caching of DNs.
Take this example config:
overlay pcache
pcache bdb 10000 2 500 100
directory /var/lib/ldap/cache
pcacheAttrset 0 *
pcacheAttrset 1 uid
pcacheTemplate (uid=) 0 300
pcacheTemplate (uid=) 1 300
This works for queries like:
ldapsearch "uid=foo" '*'
or
ldapsearch "uid=foo" 'uid'
but NOT for:
ldapsearch "uid=foo" 'dn'
Can anyone tell me if it is at all possible to use pcache for caching DNs?
Things I have tried so far:
- adding 'dn' as a pcacheAttrset, but then slapd fails to start
with the error "line 63: attribute type undefined".
That should have told you already, you're barking up the wrong tree. DN is not
an attribute.
- adding 'distinguishedName' as a pcacheAttrset, and then the
result is cached when I request the distinguishedName
attribute, but not when the dn is requested.
I've tried openldap 2.4.40 and 2.4.44 (specifically, the version from Debian
jessie and the version from jessie-backports).
Thanks a lot,
Roel
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/