diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-01-21 10:26:37 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-01-21 10:26:37 -0500 |
commit | 90d35cded75fa35de4876d8f888996a8746da4d3 (patch) | |
tree | c88db766a2ba2a865e01c8d7855ccf13c9cbfb53 /db/security_commands.cpp | |
parent | fbb8eb10ec7210479b5c9156ac493640ca0fc7d1 (diff) | |
parent | da79a09df9dcb292b23430e01fe0cc5cb0c306b4 (diff) | |
download | mongo-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.cpp | 4 |
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"); |