2

I have a Cassandra cluster running on Ubuntu. I would like to enable authentication so that not everyone will have access to the Cassandra database and run queries.

Enabling simple authentication is available at https://docs.datastax.com/en/cassandra/3.0/cassandra/configuration/secureConfigNativeAuth.html

But, I am looking for integrating Cassandra with LDAP, Active Directory

NNK
  • 1,044
  • 9
  • 24

2 Answers2

4

You will have to change the default authenticator from AllowAllAuthenticator to PasswordAuthenticator or some custom authenticator.

You can also enable roles for a finer grained access.

Check the following:

Later edit: since you need LDAP autentication you can use the one created by Instaclustr. Details - Apache Cassandra LDAP Authentication and the source code.

Horia
  • 2,942
  • 7
  • 14
  • I've found this information on datastax website. I am more looking for authentication against LDAP – NNK Jan 16 '19 at 17:34
-1

Just replace PasswordAuthenticator from AllowAllAuthenticator and CassandraAuthorizer from AllowAllAuthorizer on cassandra.yaml. Restart the Cassandra services. it will allow without password.

LetsNoSQL
  • 1,478
  • 1
  • 11
  • 23