OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Server.MSysMan.Security.TLoginLog Class Reference

Adds records to the s_login DB Table. That DB Table contains a log of all the log-ins/log-in attempts to the system, and of log-outs from the system. More...

Static Public Member Functions

static void AddLoginLogEntry (String AUserID, String ALoginType, String ALoginDetails, out Int32 AProcessID, TDBTransaction ATransaction)
 Adds a record to the s_login DB Table. That DB Table contains a log of all the log-ins/log-in attempts to the system, and of log-outs from the system. More...
 
static void RecordUserLogout (String AUserID, int AProcessID, TDBTransaction ATransaction)
 Records the logging-out (=disconnection) of a Client to the s_login DB Table. That DB Table contains a log of all the log-ins/log-in attempts to the system, and of log-outs from the system. More...
 

Static Public Attributes

const string LOGIN_STATUS_TYPE_LOGIN_SUCCESSFUL = "LOGIN_SUCCESSFUL"
 User login was successful. More...
 
const string LOGIN_STATUS_TYPE_LOGIN_SUCCESSFUL_SYSADMIN = "LOGIN_SUCCESSFUL_SYSADMIN"
 User login of a user that has got SYSAMIN privileges was successful. More...
 
const string LOGIN_STATUS_TYPE_LOGIN_ATTEMPT_PWD_WRONG = "LOGIN_ATTEMPT_PWD_WRONG"
 A login attempt was made for a User ID but the password provided was wrong. More...
 
const string LOGIN_STATUS_TYPE_LOGIN_ATTEMPT_PWD_WRONG_ACCOUNT_GOT_LOCKED
 A login attempt was made for a User ID but the password provided was wrong and the permitted number of failed logins in a row got exceeded. Because of this the user account for the user got locked! More...
 
const string LOGIN_STATUS_TYPE_LOGIN_ATTEMPT_FOR_NONEXISTING_USER = "LOGIN_ATTEMPT_FOR_NONEXISTING_USER"
 A login attempt was made for a UserID that doesn't exist. More...
 
const string LOGIN_STATUS_TYPE_LOGIN_ATTEMPT_FOR_LOCKED_USER = "LOGIN_ATTEMPT_FOR_LOCKED_USER"
 A login attempt was made for a UserID whose user account is Locked. More...
 
const string LOGIN_STATUS_TYPE_LOGIN_ATTEMPT_FOR_RETIRED_USER = "LOGIN_ATTEMPT_FOR_RETIRED_USER"
 A login attempt was made for a UserID that is Retired. More...
 
const string LOGIN_STATUS_TYPE_LOGIN_ATTEMPT_WHEN_SYSTEM_WAS_DISABLED = "LOGIN_ATTEMPT_WHEN_SYSTEM_WAS_DISABLED"
 A login attempt was made while the System was Disabled. More...
 

Detailed Description

Adds records to the s_login DB Table. That DB Table contains a log of all the log-ins/log-in attempts to the system, and of log-outs from the system.

Calls methods that have the same name in the Ict.Petra.Server.App.Core.Security.LoginLog Namespace to perform its functionality!

Member Function Documentation

◆ AddLoginLogEntry()

static void Ict.Petra.Server.MSysMan.Security.TLoginLog.AddLoginLogEntry ( String  AUserID,
String  ALoginType,
String  ALoginDetails,
out Int32  AProcessID,
TDBTransaction  ATransaction 
)
inlinestatic

Adds a record to the s_login DB Table. That DB Table contains a log of all the log-ins/log-in attempts to the system, and of log-outs from the system.

Parameters
AUserIDUserID of the User for which a record should be written.
ALoginTypeType of the login/logout record. This is a hard-coded constant value (there's no 'lookup table' for it); for available values and their meaning please check program code (Ict.Petra.Server.MSysMan.Security.TLoginLog Class).
ALoginDetailsDetails/description of the login/login attempt/logout
AProcessID'Process ID'; this is a unique key and comes from a sequence (seq_login_process_id).
ATransactionInstantiated DB Transaction.

◆ RecordUserLogout()

static void Ict.Petra.Server.MSysMan.Security.TLoginLog.RecordUserLogout ( String  AUserID,
int  AProcessID,
TDBTransaction  ATransaction 
)
inlinestatic

Records the logging-out (=disconnection) of a Client to the s_login DB Table. That DB Table contains a log of all the log-ins/log-in attempts to the system, and of log-outs from the system.

Parameters
AUserIDUserID of the User for which a logout should be recorded.
AProcessIDProcessID of the User for which a logout should be recorded. This will need to be the number that got returned from an earlier call to AddLoginLogEntry(string, string, string, out int, TDBTransaction)!
ATransactionInstantiated DB Transaction.

Member Data Documentation

◆ LOGIN_STATUS_TYPE_LOGIN_ATTEMPT_FOR_LOCKED_USER

const string Ict.Petra.Server.MSysMan.Security.TLoginLog.LOGIN_STATUS_TYPE_LOGIN_ATTEMPT_FOR_LOCKED_USER = "LOGIN_ATTEMPT_FOR_LOCKED_USER"
static

A login attempt was made for a UserID whose user account is Locked.

◆ LOGIN_STATUS_TYPE_LOGIN_ATTEMPT_FOR_NONEXISTING_USER

const string Ict.Petra.Server.MSysMan.Security.TLoginLog.LOGIN_STATUS_TYPE_LOGIN_ATTEMPT_FOR_NONEXISTING_USER = "LOGIN_ATTEMPT_FOR_NONEXISTING_USER"
static

A login attempt was made for a UserID that doesn't exist.

◆ LOGIN_STATUS_TYPE_LOGIN_ATTEMPT_FOR_RETIRED_USER

const string Ict.Petra.Server.MSysMan.Security.TLoginLog.LOGIN_STATUS_TYPE_LOGIN_ATTEMPT_FOR_RETIRED_USER = "LOGIN_ATTEMPT_FOR_RETIRED_USER"
static

A login attempt was made for a UserID that is Retired.

◆ LOGIN_STATUS_TYPE_LOGIN_ATTEMPT_PWD_WRONG

const string Ict.Petra.Server.MSysMan.Security.TLoginLog.LOGIN_STATUS_TYPE_LOGIN_ATTEMPT_PWD_WRONG = "LOGIN_ATTEMPT_PWD_WRONG"
static

A login attempt was made for a User ID but the password provided was wrong.

◆ LOGIN_STATUS_TYPE_LOGIN_ATTEMPT_PWD_WRONG_ACCOUNT_GOT_LOCKED

const string Ict.Petra.Server.MSysMan.Security.TLoginLog.LOGIN_STATUS_TYPE_LOGIN_ATTEMPT_PWD_WRONG_ACCOUNT_GOT_LOCKED
static
Initial value:
=
"LOGIN_ATTEMPT_PWD_WRONG_ACCOUNT_GOT_LOCKED"

A login attempt was made for a User ID but the password provided was wrong and the permitted number of failed logins in a row got exceeded. Because of this the user account for the user got locked!

◆ LOGIN_STATUS_TYPE_LOGIN_ATTEMPT_WHEN_SYSTEM_WAS_DISABLED

const string Ict.Petra.Server.MSysMan.Security.TLoginLog.LOGIN_STATUS_TYPE_LOGIN_ATTEMPT_WHEN_SYSTEM_WAS_DISABLED = "LOGIN_ATTEMPT_WHEN_SYSTEM_WAS_DISABLED"
static

A login attempt was made while the System was Disabled.

◆ LOGIN_STATUS_TYPE_LOGIN_SUCCESSFUL

const string Ict.Petra.Server.MSysMan.Security.TLoginLog.LOGIN_STATUS_TYPE_LOGIN_SUCCESSFUL = "LOGIN_SUCCESSFUL"
static

User login was successful.

◆ LOGIN_STATUS_TYPE_LOGIN_SUCCESSFUL_SYSADMIN

const string Ict.Petra.Server.MSysMan.Security.TLoginLog.LOGIN_STATUS_TYPE_LOGIN_SUCCESSFUL_SYSADMIN = "LOGIN_SUCCESSFUL_SYSADMIN"
static

User login of a user that has got SYSAMIN privileges was successful.


The documentation for this class was generated from the following file: