user-mgmt
config-ldap
Configure LDAP
settings.
Syntax
cpd-cli user-mgmt config-ldap \
--config=<ldap-configuration-file-name> \
--profile=<cpd-configuration-profile-name> \
[--cpdconfig=<cpd-configuration-location>] \
[--skip-verify-connection] \
[--verbose] \
[--verify-connection-password=<ldap-user-password>] \
[--verify-connection-username=<ldap-user-name>] \
Arguments
The config-ldap
command has no
arguments.
Options
Option | Description |
---|---|
--config |
The LDAP configuration
file.
|
--cpdconfig |
The Cloud Pak for Data
configuration location.
|
|
Display command
help.
|
--profile |
The profile-name from the Cloud
Pak for Data configuration.
|
--skip-verify-connection |
Skip connection verification and
save the LDAP configuration.
|
--verbose |
Logs include more detailed
messages.
|
--verify-connection-password |
The LDAP user name password to use
for connection verification. The password is not saved or
recorded.
|
--verify-connection-username |
The LDAP user name to use for
connection verification. The user name is not saved or
recorded.
|
Examples
Note: The following examples use the recommended installation environment variables.
Use a script to create environment variables with the correct values for your environment. For more information, see Best practice: Setting up install variables.
- Configure LDAP with parameters from an ldap-config.json file.
-
cpd-cli user-mgmt config-ldap \ --config=ldap-config.json \ --profile=<cpd-configuration-profile-name>
- Sample ldap-config.json file.
-
{ "externalLDAPHost": "ldap://9.87.654.321", "externalLDAPPort": 389, "externalLDAPSearchBase": "dc=wdp,dc=com", "externalLDAPSearchField": "cn", "externalLDAPSearchUser": "jdoe@wdp.com", "externalLDAPSearchPassword": "XXXXXXXXX" }