如何在Mongo的MaxScale中启用身份验证?

发布于 2025-01-31 06:28:56 字数 309 浏览 1 评论 0 原文

我们使用MaxScale有一个Mariabd版本,使用MongoDB驱动程序使用NOSQL版本。

但是,该连接是无需认证就可以建立的,因此可以在MaxScale内创建新的数据库和集合。

如何使用NOSQL协议启用身份验证。

非常感谢您的注意。

type=listener
service=Read-Write-Service
protocol=nosqlprotocol
nosqlprotocol.user=maxscale
nosqlprotocol.password=password
port=17017

We have a MariaBD version using MaxScale to use the NoSQL version using MongoDB driver.

However, the connection is made without authentication and so it is possible to create new databases and collections within MaxScale.

How to enable authentication for connection using nosql protocol.

Thank you very much for everyone's attention.

type=listener
service=Read-Write-Service
protocol=nosqlprotocol
nosqlprotocol.user=maxscale
nosqlprotocol.password=password
port=17017

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

最近可好 2025-02-07 06:28:56

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.

A君 2025-02-07 06:28:56

有一个部分 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文