This is the default file that rhel/centos have in their slapd.d dir for the database. I thought I would just remove this one and place the one for mdb, seems to work, don't know about this entryUUID? Or can I do this with ldapmodify?
[@53386e4b0025 cn=config]# cat /tmp/olcDatabase={2}hdb.ldif # AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify. # CRC32 4f2ac1fc dn: olcDatabase={2}hdb objectClass: olcDatabaseConfig objectClass: olcHdbConfig olcDatabase: {2}hdb olcDbDirectory: /var/lib/ldap olcSuffix: dc=my-domain,dc=com olcRootDN: cn=Manager,dc=my-domain,dc=com olcDbIndex: objectClass eq,pres olcDbIndex: ou,cn,mail,surname,givenname eq,pres,sub structuralObjectClass: olcHdbConfig entryUUID: 537b0adc-5476-1039-9bf9-1dc025e1859d creatorsName: cn=config createTimestamp: 20190816133433Z entryCSN: 20190816133433.095410Z#000000#000#000000 modifiersName: cn=config modifyTimestamp: 20190816133433Z
[@53386e4b0025 cn=config]# cat olcDatabase={2}mdb.ldif # AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify. # CRC32 b6a274bd dn: olcDatabase={2}mdb objectClass: olcDatabaseConfig objectClass: olcMdbConfig olcDatabase: {2}mdb olcDbDirectory: /var/lib/ldap olcSuffix: dc=my-domain,dc=com olcRootDN: cn=Manager,dc=my-domain,dc=com olcDbIndex: objectClass eq,pres olcDbIndex: ou,cn,mail,surname,givenname eq,pres,sub structuralObjectClass: olcMdbConfig entryUUID: 537b0adc-5476-1039-9bf9-1dc025e1859d creatorsName: cn=config createTimestamp: 20190816133433Z entryCSN: 20190816133433.095410Z#000000#000#000000 modifiersName: cn=config modifyTimestamp: 20190816133433Z
--On Friday, August 16, 2019 7:07 PM +0200 Marc Roos M.Roos@f1-outsourcing.eu wrote:
This is the default file that rhel/centos have in their slapd.d dir for the database. I thought I would just remove this one and place the one for mdb, seems to work, don't know about this entryUUID?
entryUUID is defined as an operational attribute in RFC4530 (https://www.rfc-editor.org/rfc/rfc4530.txt)
I would strongly advise reading the slapd-mdb(5) man page before proceeding any further, you're clearly not set the max size for the database which will likely cause you issues. I would generally suggest a very large value for the maxsize. I typically use 80GB.
--Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
* Quanah Gibson-Mount quanah@symas.com [20190816 12:26]:
--On Friday, August 16, 2019 7:07 PM +0200 Marc Roos M.Roos@f1-outsourcing.eu wrote:
This is the default file that rhel/centos have in their slapd.d dir for the database. I thought I would just remove this one and place the one for mdb, seems to work, don't know about this entryUUID?
entryUUID is defined as an operational attribute in RFC4530 (https://www.rfc-editor.org/rfc/rfc4530.txt)
I would strongly advise reading the slapd-mdb(5) man page before proceeding any further, you're clearly not set the max size for the database which will likely cause you issues. I would generally suggest a very large value for the maxsize. I typically use 80GB.
I certainly don't want to steal this thread from the original poster but is this parameter re-configurable on-the-fly, while slapd is running?
Thanks, jf
--Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
--On Friday, August 16, 2019 4:23 PM -0400 Jean-Francois Malouin Jean-Francois.Malouin@bic.mni.mcgill.ca wrote:
I certainly don't want to steal this thread from the original poster but is this parameter re-configurable on-the-fly, while slapd is running?
If you are using cn=config for the database configuration, yes.
--Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
On 8/18/19 7:17 AM, Quanah Gibson-Mount wrote:
--On Friday, August 16, 2019 4:23 PM -0400 Jean-Francois Malouin Jean-Francois.Malouin@bic.mni.mcgill.ca wrote:
I certainly don't want to steal this thread from the original poster but is this parameter re-configurable on-the-fly, while slapd is running?
If you are using cn=config for the database configuration, yes.
And even when using slapd.conf (aka static config) the maxsize parameter value can be *increased* (not decreased!) without reimporting the database. Of course you have to restart slapd when changing the static config file.
Ciao, Michael.
openldap-technical@openldap.org