Authenticating 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.
The following utilities do not require credentials, even when both database and Java Management Extensions (JMX) authentication are enabled:
-
dse -v
When authorization is also enabled, use the |
- Providing credentials on 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.
- Providing credentials using environment variable
-
For
dse client-tool
,dse advrep
, andSpark
commands, provide credentials using environment variables. - Providing credentials for CQLSH
-
To start a
CQL
shell (cqlsh
) session with a node that has DataStax Enterprise authentication enabled, provide credentials usingcli
options or specifying in thecqlshrc
file.