Command Line Utility for LDAP Migration

OFSAAI has facilitated a command line utility called LDAP Migration utility to migrate:

  • users registered in LDAP server to OFSAA
  • users in LDAP to a user group mapping in OFSAA
  • user groups in OFSAA to LDAP server

This utility is present at $FIC_DB_HOME/bin folder.

To run the utility directly from the console:

  1. Navigate to $FIC_DB_HOME/bin of OFSAAI FIC DB tier, where the utility is present.
  2. To migrate users from LDAP server to OFSAA, execute the following command:
    ldapmigration.sh <user> <password> LDAPTOSMS user <ldap_server> <user_search_filter> <user_base>
  3. To migrate users in a particular user group in LDAP server to OFSAA, execute the following command:
    ldapmigration.sh <user> <password> LDAPTOSMS groupmember <ldap_server> <group_search_filter> <group_base>

    Note:

    This migration assumes the same user group exists in OFSAA.
  4. To migrate user groups from OFSAA to LDAP server, execute the following command:

    ldapmigration.sh <user> <password> SMSTOLDAP group <ldap_server> <group_search_filter>

    where

    <user>- Specify SYSADMN as the user name.

    <password>- Specify SYSADMN password.

    <ldap_server>- Specify the LDAP server name. For example, ORCL1.in.oracle.com.

    <user_search_filter>- Specify filter condition for user search.

    <user_base>- Specify user context base.

    <group_search_filter>- Specify filter condition for user group search.

    <group_base>- Specify group context base.

    For example,

    ldapmigration.sh SYSADMN password1 SMSTOLDAP group ORCL1.in.oracle.com OFSAAGRP

    ldapmigration.sh SYSADMN password1 LDAPTOSMS user ORCL1.in.oracle.com objectclass=organizationalPerson cn=Users,dc=oracle,dc=com