LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-03-2019, 03:04 PM   #1
james000
Member
 
Registered: Sep 2018
Posts: 143

Rep: Reputation: 2
Migration from OpenDS to OpenLDAP failing


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

Last edited by james000; 02-03-2019 at 03:09 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IMAP Mailbox Migration utility for Gmail/iCloud and Calendar Migration tips TB0ne LinuxQuestions.org Member Success Stories 0 03-10-2013 12:33 PM
nss_ldap, openldap and openldap-server ... what is openldap for? chakkerz Linux - Server 2 08-13-2009 07:16 PM
Mysql 4-5 migration as well as character set migration from latin1 to utf8? helptonewbie Linux - Server 3 05-15-2008 05:15 AM
LXer: Sun Addresses OpenDS Mess LXer Syndicated Linux News 0 12-12-2007 09:51 PM
LXer: Winners and losers in Sun's OpenDS spat LXer Syndicated Linux News 0 12-05-2007 12:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration