Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-4831

Procedure to create replset with auth in MongoDB 2.4

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • mongodb-2.4
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      The procedure at http://docs.mongodb.org/manual/tutorial/deploy-replica-set-with-auth/#procedure is for MongoDB 2.6. It would be useful to have a similar procedure for MongoDB 2.4.

      Alternatively, the procedure could be adapted to be compatible with MongoDB 2.4 and 2.6. I believe that the only change required would be to adjust step 2 to be:

      use admin
      db.addUser( { user: "siteUserAdmin",
                    pwd: "<password>",
                    roles: [ "userAdminAnyDatabase" ] } )
      db.addUser( { user: "siteRootAdmin",
                    pwd: "<password>",
                    roles: [ "userAdminAnyDatabase",
                             "readWriteAnyDatabase",
                             "dbAdminAnyDatabase",
                             "clusterAdmin" ] } )
      

      when MongoDB 2.4 is used.

            Assignee:
            Unassigned Unassigned
            Reporter:
            kevin.pulo@mongodb.com Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              9 years, 8 weeks, 4 days ago