diff options
author | Andy Schwerin <schwerin@10gen.com> | 2013-07-08 19:19:05 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@10gen.com> | 2013-07-26 11:40:31 -0400 |
commit | 78b54e5608d1a49da4228ee2b45489a9d0cc9182 (patch) | |
tree | 76bd554674161762b05e1bef322fbfbe67e2fae9 /src/mongo/db/audit.h | |
parent | 01b4f0ad09c244fd7f83bb045ff844416aa8ca96 (diff) | |
download | mongo-78b54e5608d1a49da4228ee2b45489a9d0cc9182.tar.gz |
SERVER-1891 Add hooks to audit authentications using MONGODB-CR and MONGODB-X509.
Diffstat (limited to 'src/mongo/db/audit.h')
-rw-r--r-- | src/mongo/db/audit.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/db/audit.h b/src/mongo/db/audit.h index ef25fea0a6c..a9791b44f82 100644 --- a/src/mongo/db/audit.h +++ b/src/mongo/db/audit.h @@ -28,6 +28,8 @@ namespace mongo { class BSONObj; class ClientBasic; class NamespaceString; + class StringData; + class UserName; namespace mutablebson { class Document; @@ -35,6 +37,14 @@ namespace mutablebson { namespace audit { + /** + * Logs the result of an authentication attempt. + */ + void logAuthentication(ClientBasic* client, + const StringData& mechanism, + const UserName& user, + ErrorCodes::Error result); + // // Authorization (authz) logging functions. // |