bool KPasswdServerLoop::waitForResult(qlonglong requestId) { m_requestId = requestId; m_seqNr = -1; m_authInfo = AuthInfo(); return (exec() == 0); }
bool DBClientReplicaSet::auth(const string &dbname, const string &username, const string &pwd, string& errmsg, bool digestPassword ) { DBClientConnection * m = checkMaster(); // first make sure it actually works if( ! m->auth(dbname, username, pwd, errmsg, digestPassword ) ) return false; // now that it does, we should save so that for a new node we can auth _auths.push_back( AuthInfo( dbname , username , pwd , digestPassword ) ); return true; }