简体   繁体   中英

On Cassandra how to enable LDAP authentication

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

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 .

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM