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

Command saslStart returns empty `errmsg` in response when unknown mechanism requested

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc1, 4.7.0
    • Affects Version/s: 4.4.0
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Security 2020-04-06

      admin.runCommand({saslStart: 1, mechanism: 'unknown-mech', payload: '...'});

      Response on 4.4+ { ok: 0.0, errmsg: ''}

      Response on 4.2- {"ok":

      {"$numberDouble":"0.0"}

      ,"errmsg": "Unsupported mechanism 'unknown-mech' on authentication database 'admin'","code": {"$numberInt":"2"},"codeName": "BadValue"}

            Assignee:
            sara.golemon@mongodb.com Sara Golemon
            Reporter:
            sara.golemon@mongodb.com Sara Golemon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: