Add database users
A user account stored in the Hyper-Converged Database (HCD) database is a role that has a login and password or hashed password.
|
Enable the By default, authentication is disabled in HCD.
You must enable it by setting |
Create a role
-
Create a role with
loginenabled and an internally stored password:CREATE ROLE <role_name> WITH LOGIN = true AND PASSWORD = '<password_string>';where:
-
<role_name>: The user name for authentication. Enclose the role names that include uppercase or special characters in double quotes. -
LOGIN = true: Allows the role to access the database. -
PASSWORD = '<default_password>': Stored internally for database managed accounts. -
Optional:
superuser = true: Gives full access to all database objects to the user. See Add a superuser login.
-
-
Each user can change their own password with the ALTER ROLE command.
-
User logs in with their role name:
cqlsh -u <role_name> -p <default_password> -
Changes the password:
ALTER ROLE <role_name> WITH password = '<newpassword>';
-
Next steps
Assign permissions to the role, see Assign permissions.