Apache Cassandra 0.6 Documentation

Authentication

Using authentication requires a small configuration change and two additional files: one for assigning users to keyspaces, and the other for assigning passwords to those users. These files are named access.properties and passwd.properties, respectively, and are located in the conf directory.

access.properties

This file contains name/value pairs, where the names are the keyspaces and the values are comma delimited sets of users:

Keyspace1=jsmith,Elvis Presley
Keyspace2=dilbert

passwd.properties

This file also contains name/value pairs, but here the name should match a user defined in access.properties and the value is the password. Passwords are in clear text unless the passwd.mode=MD5 system property is provided.

jsmith=havebadpass
Elvis Presley=graceland4evar
dilbert=nomoovertime