Hi,
I am trying to migrate LDAP services from one VM to another VM.
Existing is OpenDS-2.2.1 on RHEL 5.8 to 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)
Code:
On old VM -
/home/ldap/OpenDS-2.2.1/bin/export-ldif -X --includeBranch "dc=pg33,dc=state,dc=ia,dc=us" --ldifFile /tmp/old_schema-20190202.ldif
On new VM -
[root@new ~]# 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
[root@new ~]# head /root/openldap/old_schema_20190202.ldif
dn: cn=schema
objectClass: top
objectClass: subschema
cn: schema
olcAttributetypes: ( 2.5.4.41 NAME 'name' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{32768} X-ORIGIN 'RFC 4519' X-SCHEMA-FILE '00-core.ldif' )
olcAttributetypes: ( 2.5.4.49 NAME 'distinguishedName' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 X-ORIGIN 'RFC 4519' X-SCHEMA-FILE '00-core.ldif' )
olcAttributetypes: ( 2.5.4.0 NAME 'objectClass' EQUALITY objectIdentifierMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.38 X-ORIGIN 'RFC 4512' X-SCHEMA-FILE '00-core.ldif' )
olcAttributetypes: ( 2.5.4.1 NAME 'aliasedObjectName' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 SINGLE-VALUE X-ORIGIN 'RFC 4512' X-SCHEMA-FILE '00-core.ldif' )
olcAttributetypes: ( 2.5.4.2 NAME 'knowledgeInformation' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{32768} X-ORIGIN 'RFC 2256' X-SCHEMA-FILE '00-core.ldif' )
olcAttributetypes: ( 2.5.4.3 NAME ( 'cn' 'commonName' ) SUP name X-ORIGIN 'RFC 4519' X-SCHEMA-FILE '00-core.ldif' )
[root@new ~]#
But looks like there are some compatibility problem with openDS exported ldif file and openldap syntax. Any suggestions please ?
Thanks