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.
> 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
2.5 overhaul?
changed notes moved from Incoming to Software Bugs
ldapdelete + ldapadd would be the correct solution to replace the pcache. Alternatively, slapmodify while slapd is offline.
Actually code prevents deletes so slapmodify while slapd is offline is the solution.
(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.