[CSHARP-136] Admin credentials in connection string not used Created: 20/Dec/10  Updated: 02/Apr/15  Resolved: 20/Dec/10

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 0.9
Fix Version/s: 1.0

Type: Bug Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When using the following connection string:

mongodb://root(admin):password@localhost

the driver fails to authenticate against the admin database when accessing other databases.



 Comments   
Comment by Robert Stam [ 20/Dec/10 ]

MongoServer had this notion of two sets of credentials (AdminCredentials and DefaultCredentials) but the connection string only lets you specify one set of credentials. There was also no good rule about when one or the other set of credentials was to be used. So MongoServer now only has a single set of credentials (which may or may not be against the admin database).

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