summaryrefslogtreecommitdiff
path: root/db/security_commands.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-01-21 10:26:37 -0500
committerEliot Horowitz <eliot@10gen.com>2009-01-21 10:26:37 -0500
commit90d35cded75fa35de4876d8f888996a8746da4d3 (patch)
treec88db766a2ba2a865e01c8d7855ccf13c9cbfb53 /db/security_commands.cpp
parentfbb8eb10ec7210479b5c9156ac493640ca0fc7d1 (diff)
parentda79a09df9dcb292b23430e01fe0cc5cb0c306b4 (diff)
downloadmongo-90d35cded75fa35de4876d8f888996a8746da4d3.tar.gz
Merge branch 'master' into temp_auth
Conflicts: db/security_commands.cpp
Diffstat (limited to 'db/security_commands.cpp')
-rw-r--r--db/security_commands.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/security_commands.cpp b/db/security_commands.cpp
index 0860e0a114f..3839fd8c16e 100644
--- a/db/security_commands.cpp
+++ b/db/security_commands.cpp
@@ -67,7 +67,7 @@ namespace mongo {
return true;
}
} cmdLogout;
-
+
class CmdAuthenticate : public Command {
public:
virtual bool requiresAuth() { return false; }
@@ -79,6 +79,8 @@ namespace mongo {
}
CmdAuthenticate() : Command("authenticate") {}
bool run(const char *ns, BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool fromRepl) {
+ log(1) << " authenticate: " << cmdObj << endl;
+
string user = cmdObj.getStringField("user");
string key = cmdObj.getStringField("key");
string nonce = cmdObj.getStringField("nonce");