[CDRIVER-417] All Databases in a Client Must be Authenticated for the Same User Created: 08/Sep/14  Updated: 08/Jan/24  Resolved: 05/Feb/16

Status: Closed
Project: C Driver
Component/s: auth, libmongoc
Affects Version/s: 0.98.0
Fix Version/s: TBD

Type: Bug Priority: Major - P3
Reporter: Frank J. Lhota Assignee: A. Jesse Jiryu Davis
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends

 Description   

A mongoc_client_t object can include a user name and password that can be used to authenticate all the databases for that client. The current API, however, does not allow a database from this client to be authenticated for any user other than the one stored in the client. Two separate databases from this client cannot be authenticated for different users.

This was not a limitation of the 0.8x version of the MongoDB C driver. The function mongo_cmd_authenticate() was used to authenticate a given database for a given user, and not all databases had to be authenticated for the same user. We need to restore this ability to the 1.0.x C driver.



 Comments   
Comment by A. Jesse Jiryu Davis [ 05/Feb/16 ]

No driver spec requires us to implement multiple auths, many other drivers lack this feature, we haven't heard of additional users with this need, and MongoDB's authentication features are deemphasizing the role of single connections authenticated to multiple databases.

Generated at Wed Feb 07 21:09:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.