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

createUser fails after dropping all users

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Admin
    • Labels:
      None
    • ALL

      A mongod started with --auth allows the first user to be created via the localhost exception, and then all further operations require auth. In the past, after all users were dropped, mongod returned to this initial state. Now, it seems to reject the createUser command after all users are dropped:

      not authorized on admin to execute command { createUser: "user", pwd: "xxx", digestPassword: false, roles: [ "root" ], $db: "admin" }
      

      I'm connecting to 127.0.0.1. I haven't investigated to see when this behavior change happened.

            Assignee:
            mark.agarunov Mark Agarunov
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: