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

[Create|Update]User command should not allow the "mechanism" field

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc3
    • Affects Version/s: 2.8.0-rc2
    • Component/s: Security
    • None
    • Fully Compatible
    • ALL

      The symptom is that I can specify mechanism=MONGODB-CR when creating a new user without getting any error message, but later I cannot auth using MONGODB-CR for that new user. Confusing.
      Since this field does not make sense in a 2.8+ world, we should just remove it.

      Reference:
      https://github.com/mongodb/mongo/blob/master/src/mongo/db/auth/user_management_commands_parser.cpp#L243
      https://github.com/mongodb/mongo/blob/master/src/mongo/db/commands/user_management_commands.cpp#L424-L427

            Assignee:
            andreas.nilsson Andreas Nilsson
            Reporter:
            chunming.li@mongodb.com Chunming Li (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: