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 -c
grep: illegal option -- E
grep: illegal option -- o
Usage: grep -hblcnsviw pattern file . . .

I know this is just simple grep problem but there is a chain for awk and other simple utilities on 
these boxes.
If you can help me here that will be really great :)


~suresh


On 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/ldapadd

Any help would be appreciated 

Below are the details for Ubuntu Server and OpenLDAP

Server OS :

Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04

OpenLDAP 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.

Clément.