| 1 |
Password as Second Factor |
| 2 |
========================= |
| 3 |
|
| 4 |
This module allows users to self-register a password that will be asked after |
| 5 |
the initial login process. The password is not stored in a UserDB backend |
| 6 |
(LDAP, SQL...) but in the persistent session instead, where it can be managed |
| 7 |
through the same 2FA management tools as all other second factors. |
| 8 |
|
| 9 |
|
| 10 |
.. warning:: |
| 11 |
|
| 12 |
Using this module only makes sense if the first authentication factor is NOT |
| 13 |
knowledge-based. |
| 14 |
|
| 15 |
Configuration |
| 16 |
------------- |
| 17 |
|
| 18 |
Password encryption |
| 19 |
~~~~~~~~~~~~~~~~~~~ |
| 20 |
|
| 21 |
Passwords are stored in encrypted form, by default, the key used for encryption |
| 22 |
is the global one, set in |
| 23 |
|
| 24 |
*General Parameters* » *Advanced Parameters* » *Security* » *Key* |
| 25 |
|
| 26 |
However, if you store your configuration and persistent sessions in the same |
| 27 |
database, this defeats the point of encryption entirely. |
| 28 |
|
| 29 |
It is recommended to set the password encryption key in ``/etc/lemonldap-ng/lemonldap-ng.ini`` instead:: |
| 30 |
|
| 31 |
[all] |
| 32 |
password2fKey=changeme |
| 33 |
|
| 34 |
.. _configuration-password2f: |
| 35 |
|
| 36 |
Configuration |
| 37 |
~~~~~~~~~~~~~ |
| 38 |
|
| 39 |
All parameters are configured in "General Parameters » Second factors » |
| 40 |
Password". |
| 41 |
|
| 42 |
- **Activation**: Set to ``On`` to activate this module, or use a |
| 43 |
specific rule to select which users may use this type of second |
| 44 |
factor |
| 45 |
- **Self registration**: set it to "on" if users are authorized to |
| 46 |
register a password as their second factor |
| 47 |
- **Authentication level** (Optional): if you want to overwrite the |
| 48 |
value sent by your authentication module, you can define here the new |
| 49 |
authentication level. Example: 5 |
| 50 |
- **Label** (Optional): label that should be displayed to the user on |
| 51 |
the choice screen |
| 52 |
- **Logo** (Optional): logo file *(in static/<skin> directory)* |
| 53 |
- **Allow users to remove password**: If enabled, users can unregister |
| 54 |
password |
| 55 |
- **Lifetime** (Optional): Unlimited by default. Set a Time To Live in seconds. |
| 56 |
TTL is checked at each login process if set. If TTL is expired, the second |
| 57 |
factor is removed. |
| 58 |
|