Migration Guide: Sun One Directory Server 5.2 to Red Hat Directory Server 7.1

Purpose

This Migration Guide is intended for experienced system administrators who are planning on migrating user data from Sun One Directory Server 5.2 to Red Hat Directory Server 7.1 The information contained herein, are to be used as a guide.

Nomenclature

This section provides a brief explanation on some of the terminology used in this document.

serverroot - This is the file system directory in which your Red Hat or Sun One Directory Server has been installed.
instancename - This is the name of your Directory Server instance, usually the name of the host machine on which it has been installed.
/path - This is the absolute path to some script or tool e.g /opt/redhat-ds
sunhostname  - The name of the host running Sun One Directory Server 5.2
redhathostname - The name of the host running Red Hat Directory Server 7.1
directorymanagerpassword - The rootDN password. i.e. the password for "cn=Directory Manager"

Install Red Hat Directory Server 7.1

Install Red Hat Directory Server 7.1. For more information on planning and installing Red Hat Directory Server 7.1, refer to the Red Hat Directory Server Installation Guide.

Migrating User Data

The process for migrating user data from Sun One Directory Server 5.2 to Red Hat Directory Server 7.1 is quite straight forward, assuming that the user data is using standard schema. If the user data to be migrated is using non standard or custom schema additional steps will need to be followed to add the custom schema to Red Hat Directory Server 7.1 prior to the import step below.


Migration of user data should be complete.

Migrating Existing Indexes

The recommended way to re-create non default, indexes for your user data is to manually re-create them using the Red Hat Directory Server 7.1 console;


An alternative approach would be to search the Sun One Directory Server 5.2 configuration for your index entry, save it to an LDIF file and add it to your Red Hat Directory Server 7.1 configuration. Something like this;
dn: cn=employeenumber, cn=index, cn=example, cn=ldbm database, cn=plugins, cn=config
objectclass: nsIndex
objectclass: top
cn: employeenumber
nsSystemIndex: false
nsIndexType: eq
nsIndexType: pres
nsIndexType: sub

Migrating Custom Schema

If the user data contains custom schema, additional work will need to be performed to add the custom schema to the Red Hat Directory Server 7.1 prior to attempting to add the user data. The responsibility is on the creator of the custom schema to re-create the custom schema in Red Hat Directory Server 7.1.

The Sun One Directory Server 5.2 custom schema should be contained in the serverroot/slapd-instancename/config/schema directory. In general, user custom schema will be found in the file 99user.ldif, located in this directory.

Of course, there could be additional custom schema in separate files named NNfilename.ldif where NN is a number. In general, for separate files containing just the custom schema, you should be able to copy those schema files directly over to the Red Hat Directory Server 7.1 schema directory located at serverroot/slapd-instancename/config/schema. Be careful that said custom schema files, only contain custom schema and do not also contain default Sun One Directory Server 5.2 schema which could clash with Red Hat Directory Server 7.1 default schema.

For the custom schema stored in 99user.ldif, a good way to migrate this user data would be to create an LDIF file containing the custom schema and use ldapmodify to add it. Here's an example;

attributeTypes: ( ExampleBool-oid NAME 'ExampleBool'  SYNTAX 1.3.6.1.4.1.1466.
 115.121.1.7 X-ORIGIN 'user defined' )
attributeTypes: ( ExampleTelephone-oid NAME 'ExampleTelephone'  SYNTAX 1.3.6.1
 .4.1.1466.115.121.1.50 X-ORIGIN 'user defined' )
attributeTypes: ( ExampleEmpNo-oid NAME 'ExampleEmpNo'  SYNTAX 1.3.6.1.4.1.146
 6.115.121.1.27 X-ORIGIN 'user defined' )
attributeTypes: ( ExampleUserAttr-oid NAME 'ExampleUserAttr'  SYNTAX 1.3.6.1.4
 .1.1466.115.121.1.15 X-ORIGIN 'user defined' )
objectClasses: ( Exampleperson-oid NAME 'Exampleperson' SUP person STRUCTURAL
 MUST ( ExampleBool $ ExampleEmpNo $ ExampleTelephone $ ExampleUserAttr ) X-O
 RIGIN 'user defined' )
dn: cn=schema
changetype: modify
add: attributeTypes
attributeTypes: ( ExampleBool-oid NAME 'ExampleBool'  SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 X-ORIGIN 'user defined' )
-
add: attributeTypes
attributeTypes: ( ExampleTelephone-oid NAME 'ExampleTelephone'  SYNTAX 1.3.6.1.4.1.1466.115.121.1.50 X-ORIGIN 'user defined' )
-
add: attributeTypes
attributeTypes: ( ExampleEmpNo-oid NAME 'ExampleEmpNo'  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 X-ORIGIN 'user defined' )
-
add: attributeTypes
attributeTypes: ( ExampleUserAttr-oid NAME 'ExampleUserAttr'  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'user defined' )
-
add: objectClasses
objectClasses: ( Exampleperson-oid NAME 'Exampleperson' SUP person STRUCTURAL MUST ( ExampleBool $ ExampleEmpNo $ ExampleTelephone $ ExampleUserAttr ) X-ORIGIN 'user defined' )

Migrating Server Certificates

The easiest way to get SSL up and running on the new Red Hat Directory Server 7.1 is to get a new server certificate for the host on which it is running and setup and configure SSL in the normal way. For more information on setting up SSL for your Directory Server, refer to "Managing SSL and SASL" in the Red Hat Directory Server Administration Guide.

But it is possible to migrate the server software certificate from Sun One Directory Server 5.2 to Red Hat Directory Server 7.1 although much conversion and configuration changes will need to be employed.

Sun One Directory Server 5.2 uses cert7 format for the certificate database whereas, Red Hat Directory Server 7.1 uses cert8 format for the certificate database. Red Hat Directory Server 7.1 will automatically convert cert7 to cert8 when appropriate.
Migration of the Server Certificate is now complete. SSL can now be configured in your Red Hat Directory Server 7.1 in the usual way.

For more information on migrating server certificates, refer to the Red Hat Certificate System Command-Line Tools Guide, chapter 2, step 4. For more information on issuing server certificates, refer to the Red Hat Certificate System Administrator's Guide.

Migrating Multi-Master Configuration

The recommended approach to migrating Sun One Directory Server 5.2 replication topology, replication configuration and replication agreements is to re-create your replication topology, replication configuration and replication agreements using Red Hat Directory Server 7.1. Once the new replication topology, replication configuration and replication agreements have been created, use the guide lines above to migrate the user data from one of the sun master replicas to your new Red Hat master replica. Once this user data migration is complete, use multi-master replication to populate the other replicas from this copy of the user data.

For more information on replication, refer to "Managing Replication" in the  Red Hat Directory Server 7.1 Administration Guide.