daniel@pluta.biz wrote:
Full_Name: Daniel Pluta Version: HEAD OS: Lnx URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (2001:4ca0:0:f000:4877:9270:3ab1:2849)
slaptest -f -F ignores slapd.conf (bdb/hdb convenience) dbconfig settings.
Steps to reproduce:
1.) cat> slapd.conf<<EOF include /tmp/openldap/etc/openldap/schema/core.schema pidfile /tmp/openldap/var/run/slapd.pid argsfile /tmp/openldap/var/run/slapd.args database hdb dbconfig set_cachesize 0 1048576 0 dbconfig set_lg_bsize 2097152 suffix "dc=my-domain,dc=com" rootdn "cn=Manager,dc=my-domain,dc=com" rootpw secret directory /tmp/openldap/var/openldap-data index objectClass eq EOF
2.) convert slapd.conf into cn=config: mkdir slapd.d&& slaptest -f slapd.conf -F slapd.d
3.) search slapd.d directory for "olcdbconfig" attribute values: grep -R -i olcDbConfig slapd.d/
the string "olcDbConfig" cannot be found (only in schema definition)...
I'm unable to reproduce this issue; the conversion works for me:
violino:~/OD/hobj/tests> ../servers/slapd/slapd -Ttest -f testrun/slapd.1.conf -F testrun/slapd.d -d -1 violino:~/OD/hobj/tests> ../servers/slapd/slapd -Tc -F testrun/slapd.d -n0 | less
dn: olcDatabase={1}bdb,cn=config objectClass: olcDatabaseConfig objectClass: olcBdbConfig olcDatabase: {1}bdb olcSuffix: dc=example,dc=com olcAddContentAcl: FALSE olcLastMod: TRUE olcMaxDerefDepth: 15 olcReadOnly: FALSE olcRootDN: cn=Manager,dc=example,dc=com olcRootPW:: c2VjcmV0 olcSyncUseSubentry: FALSE olcMonitoring: TRUE olcDbDirectory: /home/hyc/OD/hobj/tests/testrun/db.1.a olcDbCacheSize: 1000 olcDbCheckpoint: 1024 5 olcDbConfig: {0}set_lg_bsize 2097152 olcDbNoSync: FALSE olcDbDirtyRead: FALSE olcDbIDLcacheSize: 0 olcDbIndex: objectClass eq olcDbIndex: cn pres,eq,sub olcDbIndex: uid pres,eq,sub olcDbIndex: sn pres,eq,sub olcDbLinearIndex: FALSE olcDbMode: 0600 olcDbSearchStack: 16 olcDbShmKey: 0 olcDbCacheFree: 1 olcDbDNcacheSize: 0 structuralObjectClass: olcBdbConfig entryUUID: 8a31068c-449d-491c-9ddf-4fb817dad065 creatorsName: cn=config createTimestamp: 20100721204954Z entryCSN: 20100721204954.041390Z#000000#000#000000 modifiersName: cn=config modifyTimestamp: 20100721204954Z