Looking at the openldap.org adminhandbook to 2.6 I found
https://openldap.org/doc/admin26/overlays.html#The%20Proxy%20Cache%20Engine
The configuration for the databas for pcache:
------------
dn: olcDatabase={0}mdb,olcOverlay={0}pcache,olcDatabase={2}ldap,cn=config
objectClass: olcMdbConfig
objectClass: olcPcacheDatabase
olcDatabase: {0}mdb
olcDbDirectory: ./testrun/db.2.a
olcDbCacheSize: 20
olcDbIndex: objectClass eq
olcDbIndex: cn,sn,uid,mail pres,eq,sub
------------
But I'm getting:
-------------
adding new entry
"olcDatabase={0}mdb,olcOverlay={1}pcache,olcDatabase={1}ldap,cn=config"
ldap_add: Undefined attribute type (17)
additional info: olcDbCacheSize: attribute type undefined
-------------
The back_mdb module is loaded.
--
Here my config "WITHOUT" olcDbCacheSize:
----------------
dn: cn=config
objectClass: olcGlobal
cn: config
olcArgsFile: /var/symas/run/slapd.args
olcLogLevel: any
olcPidFile: /var/symas/run/slapd.pid
olcToolThreads: 1
dn: cn=module{0},cn=config
objectClass: olcModuleList
cn: module{0}
olcModulePath: /opt/symas/lib/openldap
olcModuleLoad: {0}back_ldap
olcModuleLoad: {1}argon2
olcModuleLoad: {2}rwm.la
olcModuleLoad: {3}pcache.la
olcModuleLoad: {4}back_mdb.la
dn: cn=schema,cn=config
objectClass: olcSchemaConfig
cn: schema
...
dn: olcDatabase={-1}frontend,cn=config
objectClass: olcDatabaseConfig
objectClass: olcFrontendConfig
olcDatabase: {-1}frontend
olcAccess: {0}to * by
dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external
,cn=auth manage by * read
olcSizeLimit: 500
olcPasswordHash: {ARGON2}
dn: olcDatabase={0}config,cn=config
objectClass: olcDatabaseConfig
olcDatabase: {0}config
olcAccess: {0}to * by
dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external
,cn=auth manage
olcRootDN: cn=admin,cn=config
olcRootPW:
{ARGON2}$argon2i$v=19$m=4096,t=3,p=1$cXdlcnJ0enV6dWlvMTIz$G/l0lynf7
ygdz0tG+E7S1fBibsFs/L80AUSisiGl/v4
dn: olcDatabase={1}ldap,cn=config
objectClass: olcDatabaseConfig
objectClass: olcLDAPConfig
olcDatabase: {1}ldap
olcSuffix: dc=example1,dc=net
olcReadOnly: TRUE
olcRootDN: cn=admin,dc=example1,dc=net
olcMonitoring: FALSE
olcDbURI: "ldaps://dc-net01.example.net:636"
olcDbIDAssertBind: mode=none flags=prescriptive,proxy-authz-critical
bindmeth
od=simple timeout=0 network-timeout=0
binddn="cn=proxy-user,cn=users,dc=examp
le1,dc=net" credentials="Passw0rd" keepalive=0:0:0 tls_reqcert=never
tls_reqs
an=allow
olcDbIDAssertAuthzFrom: {0}*
olcDbRebindAsUser: TRUE
olcDbChaseReferrals: FALSE
olcDbProtocolVersion: 3
dn: olcOverlay={0}rwm,olcDatabase={1}ldap,cn=config
objectClass: olcOverlayConfig
objectClass: olcRwmConfig
olcOverlay: {0}rwm
olcRwmTFSupport: false
olcRwmMap: {0}objectClass posixAccount person
olcRwmMap: {1}attribute uid SAMACCOUNTNAME
olcRwmMap: {2}attribute EMPLOYEETYP DEPARTMENT
dn: olcOverlay={1}pcache,olcDatabase={1}ldap,cn=config
objectClass: olcOverlayConfig
objectClass: olcPcacheConfig
olcOverlay: {1}pcache
olcPcache: mdb 100000 1 1000 100
olcPcacheAttrset: 0 mail postalAddress telephoneNumber
olcPcacheTemplate: "(sn=)" 0 3600 0 0 0
olcPcacheTemplate: "(&(sn=)(givenName=))" 0 3600 0 0 0
olcPcacheTemplate: "(&(departmentNumber=)(secretary=))" 0 3600
olcPcachePersist: TRUE
dn: olcDatabase={0}mdb,olcOverlay={1}pcache,olcDatabase={1}ldap,cn=config
objectClass: olcMdbConfig
objectClass: olcPcacheDatabase
olcDatabase: {0}mdb
olcDbDirectory: /var/symas/pcache
olcDbIndex: objectClass eq
olcDbIndex: uid eq
----------------
Did I miss someting or is it wrong in the adminbook?