<quote who="Howard Chu">
Gavin Henry wrote:
> Hi All,
>
> I think it's worth adding an upgrading section, as I'm just playing with
> a
> copy of a live 2.3.38 system and an upgrade to LDAP_REL_ENG_2_4 is
> giving:
>
> olcReplicationInterval: value #0: <olcReplicationInterval> keyword is
> obsolete (ignored)
> str2entry: invalid value for attributeType objectClass #0 (syntax
> 1.3.6.1.4.1.1466.115.121.1.38)
> => ldif_enum_tree: failed to read entry for
> /usr/local/etc/openldap/slapd.d/cn=config/cn=include{0}.ldif
> slaptest: bad configuration file!
>
> Admittedly, no slapcat was done as the bdb env is the same, but thought
> I'd do what a normal user would ;-)
>
> Should we list obsolete values from bconfig.c that will apply and
> discuss/present the best way to upgrade?
Obsolete values don't matter; like the message said - it was simply
ignored.
The problem you ran into here is that 2.3.x had cn=include entries (which
were
also ignored in 2.3) but support for them was axed in 2.4. So, just delete
all
the cn=include* files from the config directory.
Next one:
olcReplicationInterval: value #0: <olcReplicationInterval> keyword is
obsolete (ignored)
str2entry: invalid value for attributeType olcDbConfig #3 (syntax
1.3.6.1.4.1.1466.115.121.1.15)
=> ldif_enum_tree: failed to read entry for
/usr/local/etc/openldap/slapd.d/cn=config/olcDatabase={1}hdb.ldif
slaptest: bad configuration file!
That line is: olcDbConfig: {3}
Whole section is (ignore vim line no. prefix):
21 olcDbConfig: {0}# Suretec Systems Ltd. - GH - 09/03/2006
22 olcDbConfig: {1}#
23 olcDbConfig: {2}# Not changed from defaults, will tweak once we have
more entr
24 ies
25 olcDbConfig: {3}
26 olcDbConfig: {4}# one 0.25 GB cache
27 olcDbConfig: {5}set_cachesize 0 268435456 1
28 olcDbConfig: {6}
29 olcDbConfig: {7}# Data Directory
30 olcDbConfig: {8}#set_data_dir db
31 olcDbConfig: {9}
32 olcDbConfig: {10}# Transaction Log settings
33 olcDbConfig: {11}set_lg_regionmax 262144
34 olcDbConfig: {12}set_lg_bsize 2097152
35 olcDbConfig: {13}#set_lg_dir logs
36 olcDbConfig: {14}
37 olcDbConfig: {15}# Note: special DB_CONFIG flags are no longer needed
for "qui
38 ck"
39 olcDbConfig::
ezE2fSMgc2xhcGFkZCg4KSBvciBzbGFwaW5kZXgoOCkgYWNjZXNzIChzZWUgdGhl
40 aXIgLXEgb3B0aW9uKS4g
Remove the lot?