Providing credentials in a file
Create a file that contains credentials.
Create a file that contains the credentials for commands that access the database or JMX.
Path to file
The credentials file default name is .dserc and the default
location is the user's home directory. If the file uses the defaults, there is no
need to specify it when running commands. If the file is in a different location or
has another name, provide the full path with the -f
option.
Database authentication parameters
To provide credentials for commands that require database authentication against an
LDAP and/or internal scheme, define the following parameters in the
.dserc
file.
username=username
password=password
- username
- The LDAP user name or internal role name.
- password
- The account password in plain text.
JMX authentication parameters
To provide credentials for commands that require JMX authentication, define the
following parameters in the .dserc
file.
jmx_username=jmx_username
jmx_password=jmx_password
- jmx_username
- Set to name used for JMX login.
- jmx_password
- Set to the password of the JMX user.
Tip: DataStax Enterprise supports the built-in JMX authentication against a
file or against a DSE authentication scheme. See Configuring JMX authentication.