如何在Mongo的MaxScale中启用身份验证?
我们使用MaxScale有一个Mariabd版本,使用MongoDB驱动程序使用NOSQL版本。
但是,该连接是无需认证就可以建立的,因此可以在MaxScale内创建新的数据库和集合。
如何使用NOSQL协议启用身份验证。
非常感谢您的注意。
type=listener
service=Read-Write-Service
protocol=nosqlprotocol
nosqlprotocol.user=maxscale
nosqlprotocol.password=password
port=17017
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
You can require authentication of clients by adding <代码> nosqlprotocol.authentication_required = true 在侦听器配置中。
You can require authentication of clients by adding
nosqlprotocol.authentication_required=true
in the listener configuration.有一个部分 boottage At authentication/授权 at
该解释了如何使用身份验证。
There is a section Bootstrapping the Authentication/Authorization at
https://mariadb.com/kb/en/mariadb-maxscale-6-nosql-protocol-module/#authentication that explains how to take authentication into use.