Loading src/admin.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -1813,7 +1813,9 @@ namespace authdb { user.info(*backend, udat, upos); std::cerr << "[LOGIN] found user='" << udat.getUsername() << "' match=" << (username == udat.getUsername()) << "'(len=" << udat.getUsername().size() << ")" << " input='" << username << "'(len=" << username.size() << ")" << " match=" << (username == udat.getUsername()) << " pw_match=" << (pwhash == udat.getPwHash()) << std::endl; if (!username.empty() && username == udat.getUsername() && Loading @@ -1821,8 +1823,11 @@ namespace authdb { libhttppp::HttpCookie cookie; uuid::uuid sid; std::cerr << "[LOGIN] credentials OK, calling addSession did='" << did.c_str() << "' uid='" << udat.Data.ruid.c_str() << "'" << std::endl; const SessionData *cses = AuthSession->addSession(*backend, did, udat.Data.ruid); cses->getSid(sid); std::cerr << "[LOGIN] addSession returned sid='" << sid.c_str() << "'" << std::endl; if (!cses->checkGPO("888cd19b-352d-11f0-a8cc-3cecefce9ac2")) { AuthSession->remSession(sid); Loading src/session.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -419,6 +419,10 @@ authdb::ClusterSession::ClusterSession() : LocalSession() {} authdb::ClusterSession::~ClusterSession() {} const authdb::SessionData *authdb::ClusterSession::addSession(AuthBackend &backend,uuid::uuid domainid,uuid::uuid userid){ std::cerr << "[SESSION] addSession: enter, g_Cluster=" << (g_Cluster ? "yes" : "null") << " running=" << (g_Cluster ? g_Cluster->isRunning() : false) << " critical=" << (g_Cluster ? g_Cluster->isCritical() : false) << " did='" << domainid.c_str() << "' uid='" << userid.c_str() << "'" << std::endl; if (!g_Cluster || !g_Cluster->isRunning()) throw AuthBackendError("cluster not ready — please try again later"); if (g_Cluster->isCritical()) Loading Loading
src/admin.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -1813,7 +1813,9 @@ namespace authdb { user.info(*backend, udat, upos); std::cerr << "[LOGIN] found user='" << udat.getUsername() << "' match=" << (username == udat.getUsername()) << "'(len=" << udat.getUsername().size() << ")" << " input='" << username << "'(len=" << username.size() << ")" << " match=" << (username == udat.getUsername()) << " pw_match=" << (pwhash == udat.getPwHash()) << std::endl; if (!username.empty() && username == udat.getUsername() && Loading @@ -1821,8 +1823,11 @@ namespace authdb { libhttppp::HttpCookie cookie; uuid::uuid sid; std::cerr << "[LOGIN] credentials OK, calling addSession did='" << did.c_str() << "' uid='" << udat.Data.ruid.c_str() << "'" << std::endl; const SessionData *cses = AuthSession->addSession(*backend, did, udat.Data.ruid); cses->getSid(sid); std::cerr << "[LOGIN] addSession returned sid='" << sid.c_str() << "'" << std::endl; if (!cses->checkGPO("888cd19b-352d-11f0-a8cc-3cecefce9ac2")) { AuthSession->remSession(sid); Loading
src/session.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -419,6 +419,10 @@ authdb::ClusterSession::ClusterSession() : LocalSession() {} authdb::ClusterSession::~ClusterSession() {} const authdb::SessionData *authdb::ClusterSession::addSession(AuthBackend &backend,uuid::uuid domainid,uuid::uuid userid){ std::cerr << "[SESSION] addSession: enter, g_Cluster=" << (g_Cluster ? "yes" : "null") << " running=" << (g_Cluster ? g_Cluster->isRunning() : false) << " critical=" << (g_Cluster ? g_Cluster->isCritical() : false) << " did='" << domainid.c_str() << "' uid='" << userid.c_str() << "'" << std::endl; if (!g_Cluster || !g_Cluster->isRunning()) throw AuthBackendError("cluster not ready — please try again later"); if (g_Cluster->isCritical()) Loading