Prereq:
- 389DS running on Ubuntu 16
- export.ldif from OpenDJ-2.5.0-Xpress1
- user schema files
Update schema, add attributes
$ ldapmodify -h 127.0.0.1 -p 1389 -D "cn=Directory Manager" \ -W -x -v -f ./user-at.ldif
Update schema, add object classes
$ ldapmodify -h 127.0.0.1 -p 1389 -D "cn=Directory Manager" \ -W -x -v -f ./user-oc.ldif
Prepare import file
- Remove objects where objectclass =*subentry* from export.ldif
- Remove attributes from export.ldif. entryUUID,aci:,createTimestamp,creatorsName,modifyTimestamp,modifiersName,ds-rlim,ds-privilege-name,pwdfailuretime,pwdChangedTime
$ sed '/entryUUID\|aci:\|createTimestamp\|creatorsName\|modifyTimestamp\|modifiersName\|ds-rlim\|ds-privilege-name\|pwdfailuretime\|pwdChangedTime/d' export.ldif > import.ldif
Add base object
$ ldapadd -h 127.0.0.1 -p 1389 -D "cn=Directory Manager" \ -W -x -v -c -f ./baseobject.ldif -S ./reject.ldif
Import data
$ ldapadd -h 127.0.0.1 -p 1389 -D "cn=Directory Manager" \ -W -x -v -c -f ./import.ldif -S ./reject.ldif