Search code examples
cassandradatastax-enterprise

unable to edit cassandra user password


I installed datastax cassandra enterprise version and its not allowing me to change the default password.

ALTER USER cassandra WITH PASSWORD 'newpassword' SUPERUSER ;

I am getting below error.

Unauthorized: Error from server: code=2100 [Unauthorized] message="Only superusers can create a role with superuser status"

Any help is highly appreciated.

Thanks, Ashwin


Solution

  • Thanks Aaron.

    I am using Cassandra 3.10.0.1652 and DSE 5.1.0

    It worked after I enabled internal authentication in dse.yaml file

    authentication_options:
     enabled: true
     default_scheme: internal
    
    authorization_options:
     enabled: true
    
    role_management_options:
     mode: internal
    

    Thanks, Ashwin.