search

Home  >  Q&A  >  body text

mongodb - Steps to enable user authentication in mongdb sharded deployment

Want to achieve the following scenarios:

连接mongos进程的时候,需要提供用户名和密码。
mongos的配置服务器采用副本集。
mongos创建的集合开启分片功能。

Currently, I am stuck on how to configure and enable user authentication. The online tutorials are not very detailed. Ask for help.

过去多啦不再A梦过去多啦不再A梦2791 days ago930

reply all(2)I'll reply

  • 迷茫

    迷茫2017-05-02 09:27:02

    There are many forms of authentication. I think you should want the simplest integrated verification. Please refer to the documentation to see if there is anything you don’t understand
    https://docs.mongodb.com/manu...
    https://docs.mongodb.com/manu...

    reply
    0
  • 为情所困

    为情所困2017-05-02 09:27:02

    The answer on the first floor is very complete, here is a supplement:

    One of the official documents is a textbook specifically explaining how to configure authentication in the Sharding environment:

    https://docs.mongodb.com/manu...

    Basically, you need to complete: 1. Configure internal authentication (inside Sharded Cluster); 2. Configure authentication from the client to the Sharded environment.

    Configuration requires a lot of manual operations. If you can purchase and use MongoDB Ops Manager, things will become much simpler, and you can concentrate on designing the program.

    For reference.

    Love MongoDB! Have Fun!

    reply
    0
  • Cancelreply