IBM Support

Moving LDAP from One System to Another System

Troubleshooting


Problem

This document explains how to move the LDAP configuration and data from one system to another.

Resolving The Problem

************** WARNING **************
This document assumes that the target machine does not have LDAP currently configured. If LDAP is currently configured on the target system please perform steps 1 - 6 ONLY of the following document (do not perform the reconfigure steps):

https://www.ibm.com/support/pages/node/706539

************** WARNING **************


First, you should obtain the configuration from the IFS:

1.

On the source and target machines, run the following commands:
 

CRTSAVF FILE(QGPL/LDAP)

CRTSAVF FILE(QGPL/LDAP2)

CRTSAVF FILE(QGPL/LDAP3)

2.

Run the following commands on the source machine:
 

SAV DEV('/qsys.lib/qgpl.lib/ldap.file') OBJ(('/qibm/userdata/os400/dirsrv/*' *INCLUDE))

SAVLIB LIB(QUSRDIRDB) DEV(*SAVF) SAVF(QGPL/LDAP2)

SAVLIB LIB(QUSRDIRCF) DEV(*SAVF) SAVF(QGPL/LDAP3)
3. Move the SAVF's over to the target machine and confirm its contents with a DSPSAVF to verify that the data in the save file can be seen.

Note: You must use FTP in BIN mode for the SAVF.
4

Restore the data to the target machine with the following commands:

*Note The LDAP server should not be active when restoring the save file.
 

RST DEV('/qsys.lib/qgpl.lib/ldap.file') OBJ(('/qibm/userdata/os400/dirsrv/*' *INCLUDE))

RSTLIB SAVLIB(QUSRDIRDB) DEV(*SAVF) SAVF(QGPL/LDAP2)

RSTLIB SAVLIB(QUSRDIRCF) DEV(*SAVF) SAVF(QGPL/LDAP3)
5.
Start the LDAP server with the following command:
 
STRTCPSVR SERVER(*DIRSRV)

[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000CJ2AAM","label":"IBM i Tivoli Directory Server"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]

Historical Number

637512421

Document Information

Modified date:
31 October 2024

UID

nas8N1010911