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.
--On Wednesday, June 03, 2015 8:51 PM +0000 Greg Jetter gjetter@gci.com wrote:
Greetings:
I'm running openldap 2.4.31 on ubuntu 12.04
Don't do this. Get a current build of OpenLDAP out of backports.
--Quanah
--
Quanah Gibson-Mount Platform Architect Zimbra, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
I'm confused , I looked at ubuntu backports and openldap is not available , is there no other way to change the configuration other than that ?
whats the point of using 'olc' if in order to modify it you have to re-install ?
________________________________________ From: Quanah Gibson-Mount [quanah@zimbra.com] Sent: Thursday, June 04, 2015 7:28 AM To: Greg Jetter; openldap-technical@openldap.org Subject: Re: how do I add olcDbCachesize to my ldap
--On Wednesday, June 03, 2015 8:51 PM +0000 Greg Jetter gjetter@gci.com wrote:
Greetings:
I'm running openldap 2.4.31 on ubuntu 12.04
Don't do this. Get a current build of OpenLDAP out of backports.
--Quanah
--
Quanah Gibson-Mount Platform Architect Zimbra, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
--On Thursday, June 04, 2015 6:56 PM +0000 Greg Jetter gjetter@gci.com wrote:
I'm confused , I looked at ubuntu backports and openldap is not available , is there no other way to change the configuration other than that ?
No. My point is you should not be using the 2.4.31 package, as it has many significant known issues. If you can't find the package out of backports that was put together, then I'd suggest obtaining a build from Symas or the LTB project.
I can say that this: dn: olcDatabase={1},cn=config
is definitely invalid. It should be olcDatabase={1}<something>,cn=config.
You probably mean:
dn: olcDatabase={1}hdb,cn=config
--Quanah
--
Quanah Gibson-Mount Platform Architect Zimbra, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
--On Thursday, June 04, 2015 12:01 PM -0700 Quanah Gibson-Mount quanah@zimbra.com wrote:
--On Thursday, June 04, 2015 6:56 PM +0000 Greg Jetter gjetter@gci.com wrote:
I'm confused , I looked at ubuntu backports and openldap is not available , is there no other way to change the configuration other than that ?
No. My point is you should not be using the 2.4.31 package, as it has many significant known issues. If you can't find the package out of backports that was put together, then I'd suggest obtaining a build from Symas or the LTB project.
Ah, apparently the backport is only done for Debian, and not Ubuntu. You may want to contact Ubuntu as well about providing a usable build of OpenLDAP if you choose not to use Symas or LTB.
--Quanah
--
Quanah Gibson-Mount Platform Architect Zimbra, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
Thank you , your eyes picked up an error that I looked at for a full day and did not see ... it's working now
modifying entry "olcDatabase={1}hdb,cn=config"
god I love FOSS , it proves time and time again that 'many eyes make bugs shallow ' . And yes I'll be moving the entier stack from 2.4.31. to 2.4.40 as we are experiencing other problems that may prove to be related to bugs in the earlier version..
thanks again
Greg Jetter ________________________________________ From: Quanah Gibson-Mount [quanah@zimbra.com] Sent: Thursday, June 04, 2015 10:14 AM To: Quanah Gibson-Mount; Greg Jetter; openldap-technical@openldap.org Subject: RE: how do I add olcDbCachesize to my ldap
--On Thursday, June 04, 2015 12:01 PM -0700 Quanah Gibson-Mount quanah@zimbra.com wrote:
--On Thursday, June 04, 2015 6:56 PM +0000 Greg Jetter gjetter@gci.com wrote:
I'm confused , I looked at ubuntu backports and openldap is not available , is there no other way to change the configuration other than that ?
No. My point is you should not be using the 2.4.31 package, as it has many significant known issues. If you can't find the package out of backports that was put together, then I'd suggest obtaining a build from Symas or the LTB project.
Ah, apparently the backport is only done for Debian, and not Ubuntu. You may want to contact Ubuntu as well about providing a usable build of OpenLDAP if you choose not to use Symas or LTB.
--Quanah
--
Quanah Gibson-Mount Platform Architect Zimbra, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
On Thu, Jun 04, 2015 at 11:14:20AM -0700, Quanah Gibson-Mount wrote:
Ah, apparently the backport is only done for Debian, and not Ubuntu.
Officially, at least. The Ubuntu tools make creating a personal backport in a PPA easy, though:
sudo apt-get install ubuntu-dev-tools # example: rebuild current devel release for 14.04 backportpackage -d trusty -u ppa:yourusername/yourppa openldap
openldap-technical@openldap.org