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

MongoDB does not start with authorization enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      add

      security:

      authorization: enabled to the config file, restart the service and try logging in.

      Show
      add security: authorization: enabled to the config file, restart the service and try logging in.

      Description

      Every time I enable "security: authorization: enabled", I get the following error -

      "connecting to: mongodb://127.0.0.1:27017/?authSource=admin&gssapiServiceName=mongodb
      2021-05-05T03:17:04.013+0000 E QUERY [js] Error: Authentication failed. :
      connect@src/mongo/shell/mongo.js:356:17
      @(connect):2:6
      exception: connect failed"

        Attachments

          Activity

            People

            Assignee:
            edwin.zhou Edwin Zhou
            Reporter:
            brianrl567@gmail.com Brian Rivera
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: