summaryrefslogtreecommitdiff
path: root/src/mongo/db/audit.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/audit.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/audit.cpp')
-rw-r--r--src/mongo/db/audit.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/audit.cpp b/src/mongo/db/audit.cpp
index 226d76c331d..9b3dd2aa02d 100644
--- a/src/mongo/db/audit.cpp
+++ b/src/mongo/db/audit.cpp
@@ -208,6 +208,15 @@ namespace audit {
const StringData& ns,
const BSONObj& keyPattern,
bool unique) MONGO_AUDIT_STUB
+
+ void appendImpersonatedUsers(BSONObjBuilder* cmd) MONGO_AUDIT_STUB
+
+ void parseAndRemoveImpersonatedUserField(BSONObj cmdObj,
+ AuthorizationSession* authSession,
+ std::vector<UserName>* parsedUserNames,
+ bool* fieldIsPresent)
+ MONGO_AUDIT_STUB
+
} // namespace audit
} // namespace mongo