Issue 7462 - back-ldap: olcPcache cannot be modified
Summary: back-ldap: olcPcache cannot be modified
Status: VERIFIED WONTFIX
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: backends (show other issues)
Version: 2.4.33
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-04 10:09 UTC by tioteath@gmail.com
Modified: 2021-06-07 17:04 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description tioteath@gmail.com 2012-12-04 10:09:38 UTC
Full_Name: Tio Teath
Version: 2.4.33
OS: Debian GNU Linux Wheezy
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (178.172.239.4)


I'm getting 'LDAP: error code 80 - cannot delete olcPcache' while I'm trying to
perform olcPcache modification:
dn: olcOverlay={0}pcache,olcDatabase={1}ldap,cn=config
changetype: modify
replace: olcPcache
olcPcache: hdb 10000 4 500 100
-

I have to perform this action in case, I need to extend the number of
pcacheAttrset directives.
Comment 1 ando@openldap.org 2013-01-06 16:26:14 UTC
> Full_Name: Tio Teath
> Version: 2.4.33
> OS: Debian GNU Linux Wheezy
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (178.172.239.4)
>
>
> I'm getting 'LDAP: error code 80 - cannot delete olcPcache' while I'm
> trying to
> perform olcPcache modification:
> dn: olcOverlay={0}pcache,olcDatabase={1}ldap,cn=config
> changetype: modify
> replace: olcPcache
> olcPcache: hdb 10000 4 500 100
> -
>
> I have to perform this action in case, I need to extend the number of
> pcacheAttrset directives.

Although the impossibility to modify olcPcache may be viewed as a bug, I
have the impression that a broad class of modifications e.g. to
olcPcacheTemplate are likely to invalidate an existing cache.

The fix should also consider the opportunity of thrashing the whole cache,
unless a clever means to only address entries associated with the
olcPcacheTemplate involved in the modification is found.

My 2c.  p.

-- 
Pierangelo Masarati
Associate Professor
Dipartimento di Ingegneria Aerospaziale
Politecnico di Milano

Comment 2 OpenLDAP project 2017-04-13 15:24:21 UTC
2.5 overhaul?
Comment 3 Quanah Gibson-Mount 2017-04-13 15:24:21 UTC
changed notes
moved from Incoming to Software Bugs
Comment 4 Quanah Gibson-Mount 2021-06-07 17:01:17 UTC
ldapdelete

+

ldapadd

would be the correct solution to replace the pcache.

Alternatively, slapmodify while slapd is offline.
Comment 5 Quanah Gibson-Mount 2021-06-07 17:01:56 UTC
Actually code prevents deletes so slapmodify while slapd is offline is the solution.
Comment 6 Quanah Gibson-Mount 2021-06-07 17:04:41 UTC
(In reply to Quanah Gibson-Mount from comment #5)
> Actually code prevents deletes so slapmodify while slapd is offline is the
> solution.

never mind, you can delete the entire overlay config, and then recreate, which would be the online way to handle this.