summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/authentication_commands.h
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2013-11-13 18:46:59 -0500
committerAndy Schwerin <schwerin@10gen.com>2013-11-13 19:04:42 -0500
commitf85ceb17b37210eef71e8113162c41368bfd5c12 (patch)
treee261df01d221aece17d127383c9ba9753df56db3 /src/mongo/db/commands/authentication_commands.h
parent4d5ba6b01fa2d38640ba5bc8bf5c99f305e619bf (diff)
downloadmongo-f85ceb17b37210eef71e8113162c41368bfd5c12.tar.gz
SERVER-9476 Redact some potentially sensitive information when logging authentications.
Diffstat (limited to 'src/mongo/db/commands/authentication_commands.h')
-rw-r--r--src/mongo/db/commands/authentication_commands.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/commands/authentication_commands.h b/src/mongo/db/commands/authentication_commands.h
index ec8807e4579..44db5b1b910 100644
--- a/src/mongo/db/commands/authentication_commands.h
+++ b/src/mongo/db/commands/authentication_commands.h
@@ -51,6 +51,8 @@ namespace mongo {
virtual void addRequiredPrivileges(const std::string& dbname,
const BSONObj& cmdObj,
std::vector<Privilege>* out) {} // No auth required
+ virtual void redactForLogging(mutablebson::Document* cmdObj);
+
CmdAuthenticate() : Command("authenticate") {}
bool run(const string& dbname,
BSONObj& cmdObj,