|
|
@ -383,7 +383,7 @@ void AuthSocket::updateStatistics(int eventType) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
TQString userID = m_authenticatedUserName + "@" + m_authenticatedRealmName;
|
|
|
|
TQString userID = m_authenticatedUserName + "@" + m_authenticatedRealmName;
|
|
|
|
TQSqlRecord *buffer = m_databaseStatisticsCursor->primeInsert();
|
|
|
|
TQSqlRecord *buffer = m_databaseStatisticsCursor->primeInsert();
|
|
|
|
buffer->setValue("timestamp", TQDateTime::currentDateTime().toTime_t());
|
|
|
|
buffer->setValue("timestamp", (TQ_ULLONG)TQDateTime::currentDateTime().toTime_t());
|
|
|
|
buffer->setValue("eventtypeid", eventType);
|
|
|
|
buffer->setValue("eventtypeid", eventType);
|
|
|
|
buffer->setValue("arbiter", m_localMachineFQDN);
|
|
|
|
buffer->setValue("arbiter", m_localMachineFQDN);
|
|
|
|
buffer->setValue("stationid", m_stationID);
|
|
|
|
buffer->setValue("stationid", m_stationID);
|
|
|
@ -567,7 +567,7 @@ void AuthSocket::commandLoop() {
|
|
|
|
buffer->setValue("arbiter", m_localMachineFQDN);
|
|
|
|
buffer->setValue("arbiter", m_localMachineFQDN);
|
|
|
|
buffer->setValue("username", m_authenticatedUserName);
|
|
|
|
buffer->setValue("username", m_authenticatedUserName);
|
|
|
|
buffer->setValue("realmname", m_authenticatedRealmName);
|
|
|
|
buffer->setValue("realmname", m_authenticatedRealmName);
|
|
|
|
buffer->setValue("logontime", TQDateTime::currentDateTime().toTime_t());
|
|
|
|
buffer->setValue("logontime", (TQ_ULLONG)TQDateTime::currentDateTime().toTime_t());
|
|
|
|
buffer->setValue("serviceid", m_serviceID);
|
|
|
|
buffer->setValue("serviceid", m_serviceID);
|
|
|
|
buffer->setValue("terminate", 0);
|
|
|
|
buffer->setValue("terminate", 0);
|
|
|
|
m_databaseActivityCursor->insert();
|
|
|
|
m_databaseActivityCursor->insert();
|
|
|
@ -658,7 +658,7 @@ void AuthSocket::commandLoop() {
|
|
|
|
buffer->setValue("arbiter", m_localMachineFQDN);
|
|
|
|
buffer->setValue("arbiter", m_localMachineFQDN);
|
|
|
|
buffer->setValue("username", m_authenticatedUserName);
|
|
|
|
buffer->setValue("username", m_authenticatedUserName);
|
|
|
|
buffer->setValue("realmname", m_authenticatedRealmName);
|
|
|
|
buffer->setValue("realmname", m_authenticatedRealmName);
|
|
|
|
buffer->setValue("logontime", TQDateTime::currentDateTime().toTime_t());
|
|
|
|
buffer->setValue("logontime", (TQ_ULLONG)TQDateTime::currentDateTime().toTime_t());
|
|
|
|
buffer->setValue("serviceid", m_serviceID);
|
|
|
|
buffer->setValue("serviceid", m_serviceID);
|
|
|
|
buffer->setValue("terminate", 0);
|
|
|
|
buffer->setValue("terminate", 0);
|
|
|
|
m_databaseActivityCursor->insert();
|
|
|
|
m_databaseActivityCursor->insert();
|
|
|
@ -804,7 +804,7 @@ AuthServer::AuthServer(TQObject* parent) :
|
|
|
|
// Update statistics
|
|
|
|
// Update statistics
|
|
|
|
TQSqlCursor databaseStatisticsCursor("statistics", TRUE, m_database);
|
|
|
|
TQSqlCursor databaseStatisticsCursor("statistics", TRUE, m_database);
|
|
|
|
TQSqlRecord *buffer = databaseStatisticsCursor.primeInsert();
|
|
|
|
TQSqlRecord *buffer = databaseStatisticsCursor.primeInsert();
|
|
|
|
buffer->setValue("timestamp", TQDateTime::currentDateTime().toTime_t());
|
|
|
|
buffer->setValue("timestamp", (TQ_ULLONG)TQDateTime::currentDateTime().toTime_t());
|
|
|
|
buffer->setValue("eventtypeid", STATISTICS_SERVER_START_EVENT);
|
|
|
|
buffer->setValue("eventtypeid", STATISTICS_SERVER_START_EVENT);
|
|
|
|
databaseStatisticsCursor.insert();
|
|
|
|
databaseStatisticsCursor.insert();
|
|
|
|
|
|
|
|
|
|
|
@ -826,7 +826,7 @@ AuthServer::~AuthServer() {
|
|
|
|
// Update statistics
|
|
|
|
// Update statistics
|
|
|
|
TQSqlCursor databaseStatisticsCursor("statistics", TRUE, m_database);
|
|
|
|
TQSqlCursor databaseStatisticsCursor("statistics", TRUE, m_database);
|
|
|
|
TQSqlRecord *buffer = databaseStatisticsCursor.primeInsert();
|
|
|
|
TQSqlRecord *buffer = databaseStatisticsCursor.primeInsert();
|
|
|
|
buffer->setValue("timestamp", TQDateTime::currentDateTime().toTime_t());
|
|
|
|
buffer->setValue("timestamp", (TQ_ULLONG)TQDateTime::currentDateTime().toTime_t());
|
|
|
|
buffer->setValue("eventtypeid", STATISTICS_SERVER_STOP_EVENT);
|
|
|
|
buffer->setValue("eventtypeid", STATISTICS_SERVER_STOP_EVENT);
|
|
|
|
databaseStatisticsCursor.insert();
|
|
|
|
databaseStatisticsCursor.insert();
|
|
|
|
|
|
|
|
|
|
|
|