コード例 #1
0
ファイル: security.cpp プロジェクト: IanWhalen/mongo
 bool CmdLogout::run(const string& dbname , BSONObj& cmdObj, int, string& errmsg, BSONObjBuilder& result, bool fromRepl) {
     AuthenticationInfo *ai = ClientInfo::get()->getAuthenticationInfo();
     AuthorizationManager* authManager = ClientInfo::get()->getAuthorizationManager();
     ai->logout(dbname);
     authManager->logoutDatabase(dbname);
     return true;
 }
コード例 #2
0
ファイル: security_commands.cpp プロジェクト: tanfulai/mongo
 bool run(const char *ns, BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool fromRepl) {
     // database->name is the one we are logging out...
     AuthenticationInfo *ai = authInfo.get();
     assert( ai ); 
     ai->logout(database->name.c_str());
     return true;
 }
コード例 #3
0
ファイル: security_commands.cpp プロジェクト: alexdong/mongo
 bool run(const char *ns, BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool fromRepl) {
     // database->name is the one we are logging out...
     AuthenticationInfo *ai = cc().getAuthenticationInfo();
     ai->logout(nsToDatabase(ns));
     return true;
 }
コード例 #4
0
ファイル: security_commands.cpp プロジェクト: erickt/mongo
 bool run(const string& dbname , BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool fromRepl) {
     AuthenticationInfo *ai = cc().getAuthenticationInfo();
     ai->logout(dbname);
     return true;
 }
コード例 #5
0
ファイル: security.cpp プロジェクト: DumaGit/mongo
 bool CmdLogout::run(const string& dbname , BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool fromRepl) {
     AuthenticationInfo *ai = ClientInfo::get()->getAuthenticationInfo();
     ai->logout(dbname);
     return true;
 }