9/22/16

Import and Export Data (ldif file) to IBM Tivoli Directory Server


It is recommended to import and export groups and users separately. To make this;

On Source:

     A: Exporting groups

         

 idsdb2ldif -o groups.ldif -k CryptoSeed -t CryptoSalt -s cn=groups,dc=...,dc=com

          This process must finish with something like "62 entries have been successfully exported from the directory."

     B: Exporting users

          idsdb2ldif -o users.ldif -k CryptoSeed -t CryptoSalt -s cn=users,dc=...,dc=com

          This process must finish with something like "35304 entries have been successfully exported from the directory." *number of entries can vary.

After creating, transfer groups.ldif and users.ldif files to the target directory server.


On Target:
   
     1- Stop ldap server:
          idsslapd -k

     2- Import groups:
          idsldif2db -i groups.ldif

     3- Import users:
          idsldif2db -i users.ldif

          This process must finish with something like "35304 entries have been successfully added out of 35304 attempted."

     4- Start back ldap server:
          idssldapd


* It d be nice to check ibmslapd.log file at this point to see whether there is an error on ldap server, and check the replication status.  


No comments:

Post a Comment