[SERVER-4823] show dbs should return a list of databases that any user can access Created: 31/Jan/12 Updated: 30/Aug/12 Resolved: 31/Jan/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 2.0.2 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Alex Bilbie | Assignee: | Scott Hernandez (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
If you have a user that only has access to a specific database then the "show dbs" should still return a list with that single database in it rather than throw: listDatabases failed: { "errmsg" : "need to login", "ok" : 0 } |
| Comments |
| Comment by Scott Hernandez (Inactive) [ 31/Jan/12 ] |
|
The listDatabases command is an admin command and you must be authenticated on the admin database to run it if authentication is enabled. Here is a list of all commands: http://www.mongodb.org/display/DOCS/List+of+Database+Commands |