[SERVER-40967] "too many users are authenticated" Created: 02/May/19  Updated: 03/May/19  Resolved: 03/May/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.6.10
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Erik Hennerfors Assignee: Kelsey Schubert
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

RHEL 7


Participants:

 Description   

Hi
We're getting an error when we're trying to authenticate on a database running MongoDB 3.6.10

[enerfors@adp-stage-mongodb01 ~]$ mongo
MongoDB shell version v3.6.10
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("24228b75-6b8b-46cc-a5ee-237b91a82479") }
MongoDB server version: 3.6.10
+ MongoDB Shell Extensions (0.2.9) by Gabriele Lana <gabriele.lana@gmail.com>
bf-adp:PRIMARY> use admin
switched to db admin
bf-adp:PRIMARY> db.auth("admin", "*")
1
bf-adp:PRIMARY> use domain
switched to db domain
bf-adp:PRIMARY> db.auth("user", "*")
1
bf-adp:PRIMARY>
bf-adp:PRIMARY> c
2019-05-02T17:27:13.511+0200 E QUERY    [thread1] Error: listCollections failed: {
        "operationTime" : Timestamp(1556810830, 1),
        "ok" : 0,
        "errmsg" : "too many users are authenticated",
        "code" : 13,
        "codeName" : "Unauthorized",
        "$clusterTime" : {
                "clusterTime" : Timestamp(1556810830, 1),
                "signature" : {
                        "hash" : BinData(0,"BOjtAxpRjd+tmZWOlgytdqEslHQ="),
                        "keyId" : NumberLong("6620692692374388897")
                }
        }
} :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
DB.prototype._getCollectionInfosCommand@src/mongo/shell/db.js:941:1
DB.prototype.getCollectionInfos@src/mongo/shell/db.js:953:19
DB.prototype.getCollectionNames@src/mongo/shell/db.js:964:16
DB.prototype.getCollections@/www/adeprimo/home/enerfors/.mongorc.js:12636:12
shellHelper.c@/www/adeprimo/home/enerfors/.mongorc.js:11986:5
shellHelper@src/mongo/shell/utils.js:750:15
@(shellhelp2):1:1
bf-adp:PRIMARY>

Any ideas why?

Regards
Erik



 Comments   
Comment by Kelsey Schubert [ 03/May/19 ]

Hi erik.hennerfors@adeprimo.se,

Thanks for the report. Currently, MongoDB does not allow more than user to be logged in for a session. Please see https://docs.mongodb.com/manual/core/authentication/#authentication-methods for additional details.

Kind regards,
Kelsey

Generated at Thu Feb 08 04:56:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.