Authenticate using DSE Utilities
Provide credentials for internal or LDAP pass-through authentication when using DataStax Enterprise (DSE) and native utilities to connect to an authentication-enabled cluster:
- Provide credentials on the command line
-
Use switches to provide a username and password from the command line.
- Providing Credentials in a File
-
Create a file that contains credentials.
- Provide credentials using environment variables
-
For
dse client-tool,dse advrep, andSparkcommands, provide credentials using environment variables. - Provide credentials for cqlsh
-
To start a CQL shell (
cqlsh) session with a node that has DSE authentication enabled, provide credentials usingclioptions or specifying in thecqlshrcfile.
When authorization is also enabled, use the GRANT command to manage access to database objects.
See Manage access.
The following utilities do not require credentials, even when both database and Java Management Extensions (JMX) authentication are enabled:
-
dse -v