You can use the command-line interface (CLI) to configure LDAP authentication in your
Copy Services Manager environment.
About this task
The basic user registry is the default user-authentication
method for Copy Services Manager. If you do not use the
basic user registry, you can configure Copy Services Manager to use
either an Active Directory Server or an LDAP Server-based authentication method.
Note: After LDAP
authentication is configured, users from the basic user registry are
still able to authenticate. It is recommended that you leave at least one user from the basic user registry with the administrator role. This user serves as a backup
if there is ever a loss in communication to the LDAP servers.
Perform the following steps to
configure LDAP authentication support by using the CLI:
Procedure
Log in to Copy Services Manager CLI as a user with
administrator privileges.
You can choose to establish either an Active Directory
or LDAP Server configuration.
Enter the mkadcfg command to configure Copy Services Manager to use Active Directory server-based
authentication. For more information about using this command, see the
mkadcfg command help
topic.
-help | -h | -?
Lists help for the command. If you specify additional parameters and arguments, those parameters
and arguments are ignored.
-serveradserver
Specifies the Active Directory servers. The input format is adservername:port, for
example, adServer1:636. Multiple backup Active Directory servers can be specified by using a
semicolon to separate each server. If a port is not specified, the default port that is used is 389.
-usernameusername
Specifies the user name that is required for accessing the Active Directory domain. Any domain
user from the Active Directory server that is identified by the server parameter can be specified
for this operation.
-passwordpassword
Specifies the password of the user who is specified with the username
parameter. To hide the password, call the command without this option. The command prompts for the
password, which is not echoed.
-domaindomain
Specifies the domain of the user who is specified with the username parameter.
Establishing an Active Directory server configuration
Enter the mkldapcfg command to configure Copy Services Manager to use LDAP server-based authentication. For more information about using this command, see the mkldapcfg command help topic.
-help | -h | -?
Lists help for the command. If you specify additional parameters and arguments, those parameters
and arguments are ignored.
-keyfilepathkeyfilepath
Specifies the absolute path of the key file that holds the CA certificate. If multiple
certificates are required, then include all of them in a single file to be provided as input. The
file should be present on the system from which mkldapcf is initiated. This
parameter is optional.
Specifies the LDAP servers. The input format is ldapservername:port, for example,
ldapserver1:636. Multiple backup LDAP servers can be specified by using a semicolon to
separate each server. Multiple LDAP servers must be replicas of the primary LDAP server, or they can
be any LDAP host with the same schema, which contains data that is mirrored from the same LDAP Data
Interchange Format (LDIF) file. If a port is not specified, the default ports that are used are 389
for ldap:// and 636 for ldaps://.
-baseDNldapbase
Specifies the LDAP base DN.
-bindDNbindDN
Specifies the binding DN of an LDAP user who has sufficient permissions to read user data.
-passwordpassword
Specifies the password of the user who is specified with bindDN parameter.
To hide the password, call the command without this option. The command prompts for the password,
which is not echoed.
Establishing an LDAP server configuration without security
Please enter a password:>
An LDAP configuration already exists. Are you sure you want to replace
it? [y/n]:y
IWNR4950I [Aug 11, 2015 8:45:21 AM] Successfully updated the LDAP
configuration.
Note: Only one authentication method can be used. For example,
if you enter the mkadcfg command first, and then
enter the mkldapcfg command later, the last command
overwrites the previous configuration.
Results
When Copy Services Manager is configured to
connect to the appropriate server, all LDAP users are authenticated through that server.