[SERVER-7124] connectionStatus command Created: 24/Sep/12  Updated: 02/Aug/18  Resolved: 21/Dec/12

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 2.3.2

Type: Task Priority: Major - P3
Reporter: Eric Milkie Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-1698 A shell function should be implemente... Closed
is duplicated by SERVER-3151 Determine the currently logged-in user Closed
Related
is related to DOCS-4013 Document connectionStatus command Closed
is related to SERVER-33400 Add db.currentUser() helper function ... Closed
Participants:

 Description   

This command will show you what authenticated principals are active for the connection, as well as what capabilities are activated. Among other things.

Command:

{ connectionStatus: 1 }

Response:

{ ok: 1, authInfo: { authenticatedUsers: [ { user: <String>, userSource: <String> }, ... ] } }



 Comments   
Comment by Mathias Stearn [ 21/Dec/12 ]

Removed reference to unimplemented filter param

Comment by auto [ 21/Dec/12 ]

Author:

{u'date': u'2012-12-21T01:34:48Z', u'email': u'mathias@10gen.com', u'name': u'Mathias Stearn'}

Message: SERVER-7124 connectionStatus command

Currently only returns list of users logged in on current connection
Branch: master
https://github.com/mongodb/mongo/commit/a7d5f6fa9d14ed29d42f531074e5014fc8dd78a0

Comment by Andy Schwerin [ 20/Dec/12 ]

AuthorizationManager::getAuthenticatedPrincipalNames() returns the iterator to the names to report. See mongo/db/auth/authorization_manager.h.

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