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

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.6.0, 4.0.0, 4.2.0
    • 4.8.0, 4.4.2, 4.2.11, 4.0.21
    • Sharding
    • Fully Compatible
    • v4.4, v4.2, v4.0
    • 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

              andrew.shuvalov@mongodb.com Andrew Shuvalov
              dmitry.agranat@mongodb.com Dmitry Agranat
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: