Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-16789

Error code when enable auth=true , mongodb 2.6

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Admin
    • None
    • ALL

    Description

      Default, we can connect to mongo without password, it's not secure.
      I want any user connect to mongodb have to enter password.
      I comment out this line in the /etc/mongod.conf file
      auth = true

      After that we can connect to mongodb using password. But when execute command, i see the errors

      uncaught exception: {
      "ok" : 0,
      "errmsg" : "not authorized on dbname to execute command

      { $eval: \"R900_GETTOTALALL(106)\" }

      ",
      "code" : 13
      }

      Please help
      HIEUPT

      Attachments

        Activity

          People

            Unassigned Unassigned
            gsphan Hieu Phan Trong
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: