Creating Kerberos users

Using password authentication or the cassandra@REALM Kerberos principal to create Kerberos users.

DataStax Enterprise automatically creates a cassandra superuser, which you can authenticate as and use cqlsh to create other users.

Procedure

  1. In the cassandra.yaml file, set the password authenticator:
    authenticator: org.apache.cassandra.auth.PasswordAuthenticator
  2. Start cqlsh and login using the superuser name and password:
    $ ./cqlsh -u cassandra -p cassandra
  3. Create the other Kerberos users, such as user@REALM. Be sure to create at least one with superuser privileges.
    cqlsh> create user 'art3mis@EXAMPLE.COM' SUPERUSER;
  4. Optional: (Highly recommended.) Remove the cassandra user. See DROP USER.
  5. Re-enable Kerberos authorization in the cassandra.yaml file:
    authenticator: com.datastax.bdp.cassandra.auth.KerberosAuthenticator
    The location of the cassandra.yaml file depends on the type of installation:
    Package installations /etc/cassandra/cassandra.yaml
    Tarball installations install_location/resources/cassandra/conf/cassandra.yaml