[Date Prev][Date Next] [Chronological] [Thread] [Top]

how do I add olcDbCachesize to my ldap



Greetings:

I'm running  openldap 2.4.31 on  ubuntu 12.04 ,  I want to  set the  cache size for entries to 200,000

I created a ldif :
-- leading blank line --
dn: olcDatabase={1},cn=config
changetype: modify
add: olcDbCachesize
olcDbCacheSize: 200000


I get the following :

greg@Catbert:~/LDAP3$ sudo ldapadd -Q -Y EXTERNAL -H ldapi:/// -f AddCatchSize.ldif
modifying entry "olcDatabase={1},cn=config"
ldap_modify: No such object (32)
	matched DN: cn=config

I tried a ldap modify as well :

greg@Catbert:~/LDAP3$ sudo ldapmodify -Q -Y EXTERNAL -H ldapi:/// -f AddCatchSize.ldif
[sudo] password for greg: 
modifying entry "olcDatabase={1},cn=config"
ldap_modify: No such object (32)
	matched DN: cn=config



The back end is "hdb" , with 140,000 entries ...

my  olcDatabase ldif  is :

# AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify.
# CRC32 05be5fce
dn: olcDatabase={1}hdb
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: {1}hdb
olcDbDirectory: /var/lib/ldap
olcSuffix: dc=acsalaska,dc=net
olcAccess: {0}to attrs=userPassword,shadowLastChange by self write by anonymou
 s auth by dn="cn=admin,dc=acsalaska,dc=net" write by * none
olcAccess: {1}to dn.base="" by * read
olcAccess: {2}to * by self write by dn="cn=admin,dc=acsalaska,dc=net" write by
  * read
olcLastMod: TRUE
olcRootDN: cn=admin,dc=acsalaska,dc=net
olcRootPW:: ***** removed *********
olcDbCheckpoint: 512 30
olcDbConfig: {0}set_cachesize 0 2097152 0
olcDbConfig: {1}set_lk_max_objects 1500
olcDbConfig: {2}set_lk_max_locks 1500
olcDbConfig: {3}set_lk_max_lockers 1500
olcDbIndex: objectClass eq
olcDbIndex: cdmadauserstatus eq,pres,sub
olcDbIndex: cdmadamdn eq,pres,sub
olcDbIndex: cdmadamin eq,pres,sub
olcDbIndex: cdmaesn  eq,pres,sub
olcDbIndex: cdmamin eq,pres,sub
olcDbIndex: cdmadaTetherAccess eq,pres
olcDbIndex: username eq,pres,sub
olcDbIndex: cdmameid eq,pres,sub
olcDbIndex: cdmadaroamstatus eq,pres,sub
olcDbIndex: uid eq,pres,sub
structuralObjectClass: olcHdbConfig
entryUUID: 1da37b42-815d-1034-96f3-b93aabbbf11e
creatorsName: cn=config
createTimestamp: 20150427191239Z
entryCSN: 20150428201620.191818Z#000000#000#000000
modifiersName: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
modifyTimestamp: 20150428201620Z


What am I doing wrong ?

all the documentation I have read says  olcDbCachesize object should exist  ...

any thoughts would be greatly appreciated

Than you

Greg Jetter.