summaryrefslogtreecommitdiff
path: root/src/mongo/db/audit.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2013-07-08 19:19:05 -0400
committerAndy Schwerin <schwerin@10gen.com>2013-07-26 11:40:31 -0400
commit78b54e5608d1a49da4228ee2b45489a9d0cc9182 (patch)
tree76bd554674161762b05e1bef322fbfbe67e2fae9 /src/mongo/db/audit.cpp
parent01b4f0ad09c244fd7f83bb045ff844416aa8ca96 (diff)
downloadmongo-78b54e5608d1a49da4228ee2b45489a9d0cc9182.tar.gz
SERVER-1891 Add hooks to audit authentications using MONGODB-CR and MONGODB-X509.
Diffstat (limited to 'src/mongo/db/audit.cpp')
-rw-r--r--src/mongo/db/audit.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/audit.cpp b/src/mongo/db/audit.cpp
index 86eb3577339..b8a8c8c70c2 100644
--- a/src/mongo/db/audit.cpp
+++ b/src/mongo/db/audit.cpp
@@ -25,6 +25,11 @@
namespace mongo {
namespace audit {
+ void logAuthentication(ClientBasic* client,
+ const StringData& mechanism,
+ const UserName& user,
+ ErrorCodes::Error result) MONGO_AUDIT_STUB
+
void logCommandAuthzCheck(ClientBasic* client,
const NamespaceString& ns,
const mutablebson::Document& cmdObj,