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

MongoDB does not start with authorization enabled

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • ALL
    • 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.

      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"

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

              Created:
              Updated:
              Resolved: