summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/authentication_commands.h
diff options
context:
space:
mode:
authorAndreas Nilsson <andreas.nilsson@10gen.com>2013-06-13 10:40:19 +0100
committerAndreas Nilsson <andreas.nilsson@10gen.com>2013-06-13 10:44:54 +0100
commite23ee681ca40f271ddbbd840f155a9b13102f148 (patch)
tree381284a0d9aafc00e9d2e25b6843b89ed332e01a /src/mongo/db/commands/authentication_commands.h
parentb9fed4eb9373c22a498b582febbd18e551d55d5d (diff)
downloadmongo-e23ee681ca40f271ddbbd840f155a9b13102f148.tar.gz
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.
Diffstat (limited to 'src/mongo/db/commands/authentication_commands.h')
-rw-r--r--src/mongo/db/commands/authentication_commands.h10
1 files changed, 10 insertions, 0 deletions
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<Privilege>* 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;