summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/connection_status.cpp
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2013-12-19 17:12:12 -0500
committerEric Milkie <milkie@10gen.com>2013-12-24 14:04:22 -0500
commitf148caa11e97727949b5e8594b7439856faff499 (patch)
treebf19ff059f11538c2a87c4e3e685f70e5a026937 /src/mongo/db/commands/connection_status.cpp
parentee0365ac659fa89758263d19327d69c547eb2d50 (diff)
downloadmongo-f148caa11e97727949b5e8594b7439856faff499.tar.gz
SERVER-11192 hook c++ driver to transmit mongos authenticated users to mongod, for auditing
Also, add UserNameIterator as a parallel to RoleIterator.
Diffstat (limited to 'src/mongo/db/commands/connection_status.cpp')
-rw-r--r--src/mongo/db/commands/connection_status.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/connection_status.cpp b/src/mongo/db/commands/connection_status.cpp
index 680ae1730d0..a4d173c0143 100644
--- a/src/mongo/db/commands/connection_status.cpp
+++ b/src/mongo/db/commands/connection_status.cpp
@@ -56,7 +56,7 @@ namespace mongo {
{
BSONArrayBuilder authenticatedUsers(authInfo.subarrayStart("authenticatedUsers"));
- UserSet::NameIterator nameIter = authSession->getAuthenticatedUserNames();
+ UserNameIterator nameIter = authSession->getAuthenticatedUserNames();
for ( ; nameIter.more(); nameIter.next()) {
BSONObjBuilder userInfoBuilder(authenticatedUsers.subobjStart());
userInfoBuilder.append(AuthorizationManager::USER_NAME_FIELD_NAME,