diff options
author | Antonin Kral <a.kral@bobek.cz> | 2012-06-05 19:50:36 +0200 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2012-06-05 19:50:36 +0200 |
commit | 291c9687fb2307dc22d1f269eb4d0aa98fe8cadc (patch) | |
tree | f46fac7bf8530d100aa55da89dfaa53490fbb350 /db/security_common.h | |
parent | 6d0f215499dda50fdba4a6f60ab359efe0054e0d (diff) | |
parent | 3703a282eca7e79e91f4bd651b1b861b76dc6c68 (diff) | |
download | mongodb-291c9687fb2307dc22d1f269eb4d0aa98fe8cadc.tar.gz |
Merge tag 'upstream/2.0.6'
Upstream version 2.0.6
Diffstat (limited to 'db/security_common.h')
-rw-r--r-- | db/security_common.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/db/security_common.h b/db/security_common.h index c9a3e3a..80a7450 100644 --- a/db/security_common.h +++ b/db/security_common.h @@ -61,10 +61,12 @@ namespace mongo { virtual void help(stringstream& ss) const { ss << "internal"; } CmdAuthenticate() : Command("authenticate") {} bool run(const string& dbname , BSONObj& cmdObj, int options, string& errmsg, BSONObjBuilder& result, bool fromRepl); + void authenticate(const string& dbname, const string& user, const bool readOnly); private: bool getUserObj(const string& dbname, const string& user, BSONObj& userObj, string& pwd); - void authenticate(const string& dbname, const string& user, const bool readOnly); }; + + extern CmdAuthenticate cmdAuthenticate; class CmdLogout : public Command { public: |