Add roles for LDAP logins
A role manager assigns a DataStax Enterprise (DSE) role by matching the username provided for authentication with a DSE role name. Create a role for each LDAP user who needs to access the database.
|
The LDAP |
-
Create a
loginrole that matches theusername:CREATE ROLE <`LDAP_USER_ROLE`> WITH LOGIN = true;-
LDAP_USER_ROLE: The username passed from the authenticator to the role manager. The string is exactly as the user entered it at login, including case.SUPERUSERis name of a role that is granted full database access, except on objects with a restricted permission. See Restricting access to data. -
LOGIN (required): Allows the user basic database access.
Don’t set a password.
-
-
Bind the assignment to an authentication scheme:
GRANT EXECUTE on LDAP SCHEME to <LDAP_USER_ROLE>;This step is required only when enabling
scheme_permissions. -
To allow another role to manage the new role:
GRANT AUTHORIZE FOR ALTER, DROP ON <new_role_name> TO <management_role>;All superusers have
AUTHORIZEpermissions on all roles. The role that created the role is also granted all permissions on that role.