Hi Clément,
Thanks for your kind reply. I agree with you , that this migration is not a one day project.I've spent almost one week to do this but could not able to, hence the mailing list :)I've tried using the one liners listed in the page you have mentioned , but there are lots of errors
for while executing all of them. e.g.
bash-2.05# grep -Eo 'SYNTAX ([0-9]|\.)+' schema.ldif | sort | uniq -cgrep: illegal option -- Egrep: illegal option -- oUsage: grep -hblcnsviw pattern file . . .I know this is just simple grep problem but there is a chain for awk and other simple utilities onthese boxes.If you can help me here that will be really great :)~sureshOn Tue, Feb 18, 2014 at 6:32 PM, Clément OUDOT <clem.oudot@gmail.com> wrote:
2014-02-18 12:50 GMT+01:00 Suresh Prajapati <er.sureshprajapati@gmail.com>:
Hi ,We are migrating our infrastructure from Sun Solaris to AWS. So as a part of migration we need to do the transition from Sun Directory Server to OpenLDAP.I exported the user database in ldif file from Sun LDAP. Now I am trying to import the database in to OpenLDAP Server on Ubuntu which I've installed in AWS. While importing the database I am getting a lots of error , because the sun schema for storing the users and openldap is totally different.The issue I'm currently stuck on is getting the data in the LDIF into a format that can be imported using slapadd/ldapaddAny help would be appreciatedBelow are the details for Ubuntu Server and OpenLDAPServer OS :Distributor ID: UbuntuDescription: Ubuntu 10.04 LTSRelease: 10.04OpenLDAP Version :slapd 2.4.21-0ubuntu5.7 OpenLDAP server (slapd)
Hi,migrate from SUN to OpenLDAP is not a one day project, you have to study a lot of things like: schema, ACI, plugins, data, etc.
I often use the convertldif.pl script to migrate data from SUN to OpenLDAP, see http://tools.ltb-project.org/projects/ltb/repository/entry/ldap-scripts/trunk/convertldif.pl
Clément.