summaryrefslogtreecommitdiff
path: root/src/mongo/db/audit.h
diff options
context:
space:
mode:
authorVarun Ravichandran <varun.ravichandran@mongodb.com>2020-12-22 05:02:49 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-01-04 19:58:48 +0000
commit1c34bd53ea5c7bab983980f7357dc8790166f7f2 (patch)
treeb3c9a58e732ce620eb7c034e859cf88621b87d62 /src/mongo/db/audit.h
parent84cb1c85a16cd62a0fb8bec1958262adb002ae8d (diff)
downloadmongo-1c34bd53ea5c7bab983980f7357dc8790166f7f2.tar.gz
SERVER-53329: Create audit event for logout
Diffstat (limited to 'src/mongo/db/audit.h')
-rw-r--r--src/mongo/db/audit.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/audit.h b/src/mongo/db/audit.h
index 3dd443f5d87..364ac43cae7 100644
--- a/src/mongo/db/audit.h
+++ b/src/mongo/db/audit.h
@@ -262,6 +262,14 @@ void logStartupOptions(Client* client, const BSONObj& startupOptions);
void logShutdown(Client* client);
/**
+ * Logs the users authenticated to a session before and after a logout command.
+ */
+void logLogout(Client* client,
+ StringData reason,
+ const BSONArray& initialUsers,
+ const BSONArray& updatedUsers);
+
+/**
* Logs the result of a createIndex command.
*/
void logCreateIndex(Client* client,