简体   繁体   English

在Cassandra上如何启用LDAP身份验证

[英]On Cassandra how to enable LDAP authentication

I have a Cassandra cluster running on Ubuntu. 我有一个在Ubuntu上运行的Cassandra集群。 I would like to enable authentication so that not everyone will have access to the Cassandra database and run queries. 我想启用身份验证,以便并非每个人都可以访问Cassandra数据库并运行查询。

Enabling simple authentication is available at https://docs.datastax.com/en/cassandra/3.0/cassandra/configuration/secureConfigNativeAuth.html 可通过https://docs.datastax.com/en/cassandra/3.0/cassandra/configuration/secureConfigNativeAuth.html启用简单身份验证

But, I am looking for integrating Cassandra with LDAP, Active Directory 但是,我正在寻找将Cassandra与LDAP,Active Directory集成的方法

You will have to change the default authenticator from AllowAllAuthenticator to PasswordAuthenticator or some custom authenticator. 您必须将默认身份验证器从AllowAllAuthenticator更改为PasswordAuthenticator或某些自定义身份验证器。

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. 以后编辑:由于您需要LDAP自动认证,因此可以使用Instaclustr创建的自动认证。 Details - Apache Cassandra LDAP Authentication and the source code . 详细信息-Apache Cassandra LDAP身份验证源代码

Just replace PasswordAuthenticator from AllowAllAuthenticator and CassandraAuthorizer from AllowAllAuthorizer on cassandra.yaml. 只需将cassandra.yaml上的AllowAllAuthenticator中的PasswordAuthenticator替换为AllowAlAuthorizer中的CassandraAuthorizer。 Restart the Cassandra services. 重新启动Cassandra服务。 it will allow without password. 它会允许没有密码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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