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

    • Fully Compatible
    • v4.4, v4.2, v4.0
    • Sharding 2020-10-05

      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)
      

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

              Created:
              Updated:
              Resolved: