I am migrating LDAP services from one VM to another VM. Existing is OpenDS-2.2.1 on RHEL 5.8 and new VM is OpenLDAP-2.4.0 on RHL 7.2. I am doing export-ldif in online mode to export schema and data and then import on new VM. I copied all contents from /export/home/ldap/OpenDS-2.2.1/config/schema (on old VM) to /root/openldap/schema/ (on new VM) On old VM, it was exported with export-ldif and on new VM
Already changed attributetypes to olcattributetypes. Then changed objectclasses also to olcobjectclasses, but no luck. Looks like I am missing something and it keeps failing on next one.
[[email protected] ~]# ldapadd -Y EXTERNAL -H ldapi:/// -f /root/openldap/old_schema_20190202.ldif
SASL/EXTERNAL authentication started SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth SASL SSF: 0 adding new entry "cn=schema" ldap_add: Invalid syntax (21) additional info: objectClasses: value #0 invalid per syntax
[[email protected] ~]#