migrate-ldap
Extended description
The migration utility uses the specified LDAP directory type to migrate the
Cloud Pak for Data LDAP database and configuration and
construct the appropriate LDAP configuration mappings over to the IAM Service. You can select a custom LDAP directory
type to use for LDAP mapping. The default "Custom" settings might not work for all migrations. You
can specify a custom filters *.json file (--filters=<json-file-path>
) that defines LDAP search filters to use during
migration.
Prerequisites
-
Before you run any
cpd-cli
commands, ensure that you downloaded thecpd-cli
12.0.6 command line utility for your operating system and Cloud Pak for Data edition from: https://github.com/IBM/cpd-cli/releases. - Pre-migration: A Cloud Pak for Data
3.5 or 4.x installation without IAM integration (
iamIntegration:false
) and LDAP enabled (with existing LDAP users). - Upgrade to a Cloud Pak for Data 4.x
deployment, install IBM Cloud Pak® foundational services, and
enable IAM integration (
iamIntegration:true
).
For more information, see Migrating LDAP information from Cloud Pak for Data to IAM.
Required permissions
The migrate-ldap
command requires cluster
administrator or similar roles.
Commands
Option | Description |
---|---|
version |
Display the migrate-ldap command version information. |
Syntax
cpd-cli migrate-ldap \
--namespace=<namespace-name> \
[--arch=<system-cpu-architecture>] \
[--filters=<json-file-path>] \
[--image-prefix=${PRIVATE_REGISTRY_LOCATION}] \
[--ldaptype=1|2|3|4|5|6|7|8] \
[--verbose]
Arguments
The migrate-ldap
command has no
arguments.
Options
Option | Description |
---|---|
--arch |
Provide the system
architecture.
|
|
Specify a custom filters *.json
file path. The default filters work for most cases.
|
|
Display command
help.
|
|
The private registry image prefix
for migrating the job image.
|
|
Specify an LDAP directory
type.
|
|
The namespace name in which the
utility should operate.
|
--verbose |
Logs include more detailed
messages.
|
Examples
Use a script to create environment variables with the correct values for your environment. For more information, see Best practice: Setting up install variables.
- Use the Microsoft Active Directory LDAP directory type (
--ldaptype=7
) for configuration mapping when you migrate from${PROJECT_CPD_INSTANCE}
Cloud Pak for Data LDAP to the IAM Service. -
cpd-cli migrate-ldap \ --namespace=${PROJECT_CPD_INSTANCE} \ --ldaptype=7