| 1 |
Login history |
| 2 |
============= |
| 3 |
|
| 4 |
Presentation |
| 5 |
------------ |
| 6 |
|
| 7 |
LemonLDAP::NG allows one to store user logins and login attempts in |
| 8 |
their persistent session. |
| 9 |
|
| 10 |
Users can see their own history in menu, if menu module |
| 11 |
``Login history`` is enabled. |
| 12 |
|
| 13 |
Session history is always visible in session explorer for |
| 14 |
administrators. |
| 15 |
|
| 16 |
Configuration |
| 17 |
------------- |
| 18 |
|
| 19 |
This feature can be enabled and configured in Manager, in |
| 20 |
``General Parameters`` » ``Plugins`` » ``Login History``. |
| 21 |
You can define how many logins and failed logins will be stored. |
| 22 |
|
| 23 |
A login is considered as successful if user get authenticated and is |
| 24 |
granted a session; as failed, if he fails to authenticate or if he is |
| 25 |
not allowed to open a session. In other cases which result on |
| 26 |
impossibility to authenticate user, to retrieve data or to create a |
| 27 |
session, nothing is stored. |
| 28 |
|
| 29 |
* **Max successful logins count**: How many successful logins should be remembered in the history |
| 30 |
* **Max failed logins count**: How many failed logins should be remembered in the history |
| 31 |
* **Session data to store**: additional session variables to store in the history. *Key* is the variable (or macro) name, *Value* is the title of the column used when displaying the field. Use ``__hidden__`` to store a variables without displaying it to the user. |
| 32 |
|
| 33 |
Tips |
| 34 |
~~~~ |
| 35 |
By default, login time and IP address are stored in history, and the error |
| 36 |
message prompted to the user for failed logins. It is possible to store any |
| 37 |
additional session data. For example to store authentication, add a new key |
| 38 |
``_auth`` with value ``Authentication mode``. |
| 39 |
|
| 40 |
To allow the Login History tab in Menu, configure it in |
| 41 |
``General Parameters`` > ``Portal`` > ``Menu`` > ``Modules`` (see |
| 42 |
:ref:`portal menu configuration<portalmenu-menu-modules>`). |
| 43 |
|
| 44 |
You can also display a check box on the authentication form, to allow |
| 45 |
user to see their login history before being redirected to the protected |
| 46 |
application (see |
| 47 |
:ref:`portal customization<portalcustom-other-parameters>`). |
| 48 |
|
| 49 |
The order of the columns can be specified by add a number value to the *Key*. Use ``X_key`` where ``X`` is a digit value representing the order and the ``key`` represents the attribute to be retrieved and displayed. |