Question : cannot import ldif file

Hi,

I'm exporting a .ldif file from sun ds 5.2 to importing it to sun ds 6.3.  I have to make some changes in the .ldif file after exporting it.

in 5.2, dc=example,dc=com
in 6.3 dc=misc,dc=example,dc=com (adding dc=misc. can this be correct)

The following is the code. could you tell me what additions I have to make before importing it.

Also, is there any error in the following commands

./dsconf create-suffix -h localhost -p 8389 dc=misc,dc=example,dc=com
./dsconf import -h localhost -p 8389 /export/home/user/Example.ldif dc=misc,dc=example,dc=com

Example.ldif file is the exported file.
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
dn: dc=misc,dc=example,dc=com
dc: example
objectClass: top
objectClass: domain
 
dn: ou=abc,dc=misc,dc=example,dc=com
objectClass: top
objectClass: organizationalUnit
ou: abc
 
dn: cn=abc_users,dc=misc,dc=example,dc=com
objectClass: top
objectClass: groupOfUniqueNames
cn: abc_users
description: abc Users at example
uniqueMember: uid=abc_user,ou=abc,dc=misc,dc=example,dc=com
 
dn: uid=abc_user,ou=abc,dc=misc,dc=example,dc=com
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
givenName: abc-user
sn: client
cn: abc-user client
uid: abc_user
userPassword: {SSHA}lksd;koqoqpowk&iqdnl

Answer : cannot import ldif file

Only have experience with OpenLDAP but I feel your pain so i'll offer up some suggestions.  :)

Have you had a read of the DS migration guide? http://docs.sun.com/app/docs/doc/820-2762/dsoutline?a=view
Can you import the file without any changes?
Have you a test environment you could try stuff out on?

In section 3, there in some info about migrating user data manaully with steps:
http://docs.sun.com/app/docs/doc/820-2762/dsmanual?a=view

hth.

Random Solutions  
 
programming4us programming4us