[SERVER-11426] C++ driver should accept both "userSource" and "db" when specifying what DB to authenticate against in the auth helper Created: 28/Oct/13  Updated: 05/Nov/15  Resolved: 30/Oct/13

Status: Closed
Project: Core Server
Component/s: Internal Client, Security
Affects Version/s: 2.5.3
Fix Version/s: 2.5.4

Type: Task Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Matt Dannenberg
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change
Participants:

 Description   

Everywhere else we refer to a user's "home" database we have changed the word "source"/"userSource" to "db". But the C++ driver's auth method still takes just "userSource" as the way to specify what db to run the authenticate command against.

Since this behavior was already released in 2.4, we have to continue supporting userSource at least temporarily, but we should introduce "db" as an alias and start using that in all places in our code where we call the C++ driver's auth helper.



 Comments   
Comment by auto [ 30/Oct/13 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-11426 rename userSource to db in authentication code
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/cd4bb0849af8ef30454805d888bbc64a29255f07

Comment by auto [ 30/Oct/13 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-11426 change C++ drive to accept both userSource and db as the DB to authenticate against in the auth helper
Branch: master
https://github.com/mongodb/mongo/commit/98fcff0c91c39794d37a08a86c37334406af2873

Generated at Thu Feb 08 03:25:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.