I think I understand what you have said me, but I am not still understanding what the reason to my ldif doesn't work. Thankfully my environment is a test environment. I have other test environment that has a difference between the first: I modified the first environment database to mdb database while the second is default installation where database is hdb (default).
In the second environment, I can modify olcTLSCertificateFile, olcTLSCertificateKeyFile and olcTLSCACertificateFile normally.
For modify the first environment:
- I stopped sladp service;
- I got olc configurations from slapcat -n 0 command like: slapcat -n 0 >> config.ldif;
- I added olcModuleLoad back_mdb on dn: cn=module{0},cn=config (I verified the olcModulePath and /usr/lib64;
- I modified on dn: olcDatabase={2}hdb,cn=config the following attributes:
- dn: olcDatabase={2}hdb,cn=config to dn: olcDatabase={2}mdb,cn=config
- objectClass: olcHdbConfig to objectClass: olcMdbConfig
- olcDatabase: {2}hdb to olcDatabase: {2}mdb
- structuralObjectClass: olcHdbConfig to structuralObjectClass: olcMdbConfig
- And finally, I ran this two command:
- cat config.ldif | slapadd -v -F /etc/openldap/slapd.d -n 0
- chown -R /etc/openldap/slapd.d (to solve owner problem after run this command as root)
OBS: I've mounted environment on CentOS 7, added symas' repository and install from yum.
Is possible I have done something wrong in convert process?
--
Igor Sousa