[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:
Related
is related to SERVER-6898 Allow all authenticated users to run ... Closed
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

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