Hello,

I am trying to migrate our 2.4.58 Openldap (LTB on CentOS 7) to 2.6.9 (LTB on Rocky 9).

I slapcat'ed the config DIT and data DIT and I am currently trying to import them into the new installation.

I have removed ppolicy schema and tried to slapadd, but it fails: 

[root@ldap1 openldap]# slapadd -vvv -n0 -F /usr/local/openldap/etc/openldap/slapd.d -l /root/work/ldap-mig2/config-dit.ldif
added: "cn=config" (00000001)
added: "cn=schema,cn=config" (00000001)
added: "cn={0}core,cn=schema,cn=config" (00000001)
added: "cn={1}cosine,cn=schema,cn=config" (00000001)
added: "cn={2}inetorgperson,cn=schema,cn=config" (00000001)
added: "cn={3}nis,cn=schema,cn=config" (00000001)
added: "cn={4}eduperson,cn=schema,cn=config" (00000001)
added: "cn={5}postfix,cn=schema,cn=config" (00000001)
added: "cn={6}dyngroup,cn=schema,cn=config" (00000001)
added: "cn={7}misc,cn=schema,cn=config" (00000001)
added: "cn={8}schac-20090326-1,cn=schema,cn=config" (00000001)
added: "cn={9}dnsdomain2,cn=schema,cn=config" (00000001)
added: "cn={10}proftpd-quota,cn=schema,cn=config" (00000001)
added: "cn={11}kerberos,cn=schema,cn=config" (00000001)
added: "cn={12}localemailrecipient,cn=schema,cn=config" (00000001)
added: "cn={13}entryaccess,cn=schema,cn=config" (00000001)
added: "cn={14}radius,cn=schema,cn=config" (00000001)
added: "cn={15}pdns-domaininfo,cn=schema,cn=config" (00000001)
added: "olcDatabase={-1}frontend,cn=config" (00000001)
added: "olcDatabase={0}config,cn=config" (00000001)
<= str2entry: str2ad(olcDbNoSync): attribute type undefined
slapadd: could not parse entry (line=2913)
Closing DB...

If I understand right, the process seems to be disturbed by the olcDbNoSync attribute:

<= str2entry: str2ad(olcDbNoSync): attribute type undefined
What may be the cause?

I have seen in the Internet earlier reports of this error during slapadd but there is no single reason. 

Please advise. 

Thanks in advance,
Niick