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; }
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; }
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; }
bool run(const string& dbname , BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool fromRepl) { AuthenticationInfo *ai = cc().getAuthenticationInfo(); ai->logout(dbname); return true; }
bool CmdLogout::run(const string& dbname , BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool fromRepl) { AuthenticationInfo *ai = ClientInfo::get()->getAuthenticationInfo(); ai->logout(dbname); return true; }