Add roles for LDAP users
A role manager assigns a Hyper-Converged Database (HCD) role by matching the username provided for authentication with an HCD role name. Create a role for each LDAP user who needs to access the database.
|
The LDAP |
Create a login role
-
Create a role with the
LOGINoption that matches the LDAPusername.Don’t set a password.
CREATE ROLELDAP_USER_ROLEWITH LOGIN = true;Replace
LDAP_USER_ROLEwith the name of the LDAP user. The username is passed from the authenticator to the role manager. The string is exactly as the user entered it at login, including case.SUPERUSERis a reserved word for theSUPERUSERoption that grants a role full database access. For more information, see Restrict access to data.WITH LOGINis required for basic database access. -
Optional: Grant another role permission to alter or drop the new role:
GRANT ALTER ON ROLE LDAP_USER_ROLE TO MANAGEMENT_ROLE; GRANT DROP ON ROLE LDAP_USER_ROLE TO MANAGEMENT_ROLE;Replace the following:
-
LDAP_USER_ROLE: The name of the LDAP user role. -
MANAGEMENT_ROLE: The name of the role that will manage the LDAP user role.
All superusers have
ALTER,DROP,AUTHORIZE, andDESCRIBEpermissions on all roles automatically. The role that created a role is also granted all permissions on that role. -
Next steps
Assign permissions to the role.