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

Improve error when logical sessions cannot have more than one user authenticated on a single connection

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.6.0, 4.0.0, 4.2.0
    • Fix Version/s: 4.8.0, 4.4.2, 4.2.11, 4.0.21
    • Component/s: Sharding
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.4, v4.2, v4.0
    • Sprint:
      Sharding 2020-10-05

      Description

      Currently, we print this error when logical sessions cannot have more than one user authenticated on a single connection:

       
      E QUERY    [js] Error: listDatabases failed:{
      "operationTime" : Timestamp(1528996174, 15),
      "ok" : 0,
      "errmsg" : "too many users are authenticated",
      "code" : 13,
      "codeName" : "Unauthorized",
      "$clusterTime" : {
      "clusterTime" : Timestamp(1528996174, 15),
      "signature" : {
      "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
      "keyId" : NumberLong(0)
       		}
       	}
       } :
      

      It would be more helpful for self-diagnostics and provide a better hint to a problem by printing something like this instead:

      logical sessions can't have multiple authenticated users (for more details see: https://docs.mongodb.com/manual/core/authentication/#authentication-methods)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              andrew.shuvalov Andrew Shuvalov
              Reporter:
              dmitry.agranat Dmitry Agranat
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: