From e23ee681ca40f271ddbbd840f155a9b13102f148 Mon Sep 17 00:00:00 2001 From: Andreas Nilsson Date: Thu, 13 Jun 2013 10:40:19 +0100 Subject: SERVER-7455 SERVER-7961 x.509 authentication and keyfile replacement Basic support for x.509 authentication of clients and for internal x.509 authentication of cluster members. --- src/mongo/db/commands/authentication_commands.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/mongo/db/commands/authentication_commands.h') diff --git a/src/mongo/db/commands/authentication_commands.h b/src/mongo/db/commands/authentication_commands.h index 266e2eb5b68..28cfc98b744 100644 --- a/src/mongo/db/commands/authentication_commands.h +++ b/src/mongo/db/commands/authentication_commands.h @@ -37,6 +37,16 @@ namespace mongo { std::vector* out) {} // No auth required CmdAuthenticate() : Command("authenticate") {} bool run(const string& dbname , BSONObj& cmdObj, int options, string& errmsg, BSONObjBuilder& result, bool fromRepl); + + private: + bool authenticateCR(const string& dbname, + BSONObj& cmdObj, + string& errmsg, + BSONObjBuilder& result); + bool authenticateX509(const string& dbname, + BSONObj& cmdObj, + string& errmsg, + BSONObjBuilder& result); }; extern CmdAuthenticate cmdAuthenticate; -- cgit v1.2.1