Loading src/session.cpp +5 −7 Changes for src/session.cpp: 5 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -182,6 +182,8 @@ void authdb::SessionData::setGPOResults(const std::vector<std::pair<uuid::uuid, cur->GPORes=results[i].second; } } for(auto &r : results) _gpoIndex[r.first] = r.second; } // ===== LocalSession ===== Loading Loading @@ -297,18 +299,13 @@ SessionData *createSessionData(AuthBackend &backend, uuid::uuid domainid, uuid:: } } } newSession->_gpoIndex[gpoid] = gpores->GPORes; } // Populate default GPOs that are missing from the backend and create them for(size_t i=0; gpo_default[i][0]!=nullptr; ++i){ uuid::uuid defid(gpo_default[i][0]); bool found=false; for(const SessionData::GPOResult *cures=&newSession->_GPOResult; cures; cures=cures->next){ if(cures->GPOId==defid){ found=true; break; } } bool found = newSession->_gpoIndex.count(defid) > 0; if(!found){ bool defval=(strcmp(gpo_default[i][3],"true")==0); if(!gpores->GPOId.empty()){ Loading @@ -317,6 +314,7 @@ SessionData *createSessionData(AuthBackend &backend, uuid::uuid domainid, uuid:: } gpores->GPOId=defid; gpores->GPORes=defval; newSession->_gpoIndex[defid] = defval; try { GpoData gdat(defid); gdat.setName(gpo_default[i][1]); Loading Loading
src/session.cpp +5 −7 Changes for src/session.cpp: 5 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -182,6 +182,8 @@ void authdb::SessionData::setGPOResults(const std::vector<std::pair<uuid::uuid, cur->GPORes=results[i].second; } } for(auto &r : results) _gpoIndex[r.first] = r.second; } // ===== LocalSession ===== Loading Loading @@ -297,18 +299,13 @@ SessionData *createSessionData(AuthBackend &backend, uuid::uuid domainid, uuid:: } } } newSession->_gpoIndex[gpoid] = gpores->GPORes; } // Populate default GPOs that are missing from the backend and create them for(size_t i=0; gpo_default[i][0]!=nullptr; ++i){ uuid::uuid defid(gpo_default[i][0]); bool found=false; for(const SessionData::GPOResult *cures=&newSession->_GPOResult; cures; cures=cures->next){ if(cures->GPOId==defid){ found=true; break; } } bool found = newSession->_gpoIndex.count(defid) > 0; if(!found){ bool defval=(strcmp(gpo_default[i][3],"true")==0); if(!gpores->GPOId.empty()){ Loading @@ -317,6 +314,7 @@ SessionData *createSessionData(AuthBackend &backend, uuid::uuid domainid, uuid:: } gpores->GPOId=defid; gpores->GPORes=defval; newSession->_gpoIndex[defid] = defval; try { GpoData gdat(defid); gdat.setName(gpo_default[i][1]); Loading