diff options
author | Eric Milkie <milkie@10gen.com> | 2013-12-19 17:12:12 -0500 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2013-12-24 14:04:22 -0500 |
commit | f148caa11e97727949b5e8594b7439856faff499 (patch) | |
tree | bf19ff059f11538c2a87c4e3e685f70e5a026937 /src/mongo/db/audit.cpp | |
parent | ee0365ac659fa89758263d19327d69c547eb2d50 (diff) | |
download | mongo-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.cpp | 9 |
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 |