简体   繁体   English

与Robomongo一起对MongoDB进行身份验证

[英]Authenticate MongoDB along with Robomongo

I'm currently using Robomongo when accessing my mongodb database. 访问mongodb数据库时,我当前正在使用Robomongo。 I have created a admin account on mongodb who has admin access to any db. 我在mongodb上创建了一个管理员帐户,该帐户具有对任何数据库的管理员访问权限。 I would like to be able to ONLY login with the credentials of the admin account. 我只想使用管理员帐户的凭据登录。 Now I can just login as "guest" without giving in any credentials, I've already looked at the authentication mongodb files but these seem only to authenticate using the cmd tool on the mongodb itself. 现在,我无需输入任何凭据即可直接以“ guest”身份登录,我已经查看了身份验证mongodb文件,但是这些文件似乎只能使用mongodb本身上的cmd工具进行身份验证。 How can I make that my admin account can only login using the Robomongo? 如何使我的管理员帐户只能使用Robomongo登录?

Regards. 问候。

在您的mongodb conf文件中,添加以下行“授权:已启用”

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

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