Providing Credentials in a File

Create a file that contains the credentials for commands that access the database or Java Management Extensions (JMX).

Path to file

The credentials file default name is .dserc and the default location is the user’s home directory. When 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, then 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.

DataStax Enterprise supports the built-in JMX authentication against a file or against a DSE authentication scheme. See Configuring JMX authentication.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com