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

Procedure to create replset with auth in MongoDB 2.4

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • mongodb-2.4
    • manual
    • None
    • 4
    • Docs Sprint 16 - Ending 3/13

    Description

      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.

      Attachments

        Activity

          People

            michael.paik Michael Paik
            kevin.pulo@mongodb.com Kevin Pulo
            Jess Mokrzecki Jess Mokrzecki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

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