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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.8.0-rc2
    • Fix Version/s: 2.8.0-rc3
    • Component/s: Security
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: