| 1 |
ContextSwitching plugin |
| 2 |
======================= |
| 3 |
|
| 4 |
This plugin allows certain users to switch context other user. This may |
| 5 |
be useful when providing assistance or when testing privileges. Enter |
| 6 |
the uid of the user you'd like to switch context to. |
| 7 |
|
| 8 |
Configuration |
| 9 |
------------- |
| 10 |
|
| 11 |
Just enable it in the Manager (section “plugins”) by setting a rule. |
| 12 |
ContextSwitching can be allowed or denied for specific users. |
| 13 |
Furthermore, specific identities like administrators or anonymous users |
| 14 |
can be forbidden to assume. |
| 15 |
|
| 16 |
- **Parameters**: |
| 17 |
|
| 18 |
- **Use rule**: Rule to enable or define which users may use this plugin |
| 19 |
(By example: $uid eq 'dwho' && $authenticationLevel > 2). |
| 20 |
- **Identities use rule**: Rule to define which identities can be |
| 21 |
assumed. Useful to prevent impersonation of certain sensitive |
| 22 |
identities like CEO, administrators or anonymous/protected users. |
| 23 |
- **Unrestricted users rule**: Rule to define which users can switch |
| 24 |
context of ALL users. ``Identities use rule`` is bypassed. |
| 25 |
- **Allow 2FA modifications**: This option must be enabled to append, |
| 26 |
verify or delete a second factor during context switching. |
| 27 |
- **Stop by logout**: Stop context switching by sending a logout |
| 28 |
request. |
| 29 |
|
| 30 |
|
| 31 |
.. danger:: |
| 32 |
|
| 33 |
During context switching authentication process, all |
| 34 |
plugins are disabled. In other words, all entry points like afterData, |
| 35 |
endAuth and so on are skipped. Therefore, second factors or |
| 36 |
notifications by example will not be prompted and login history is not updated! |
| 37 |
|
| 38 |
|
| 39 |
.. attention:: |
| 40 |
|
| 41 |
ContextSwitching plugin works only with a userDB |
| 42 |
backend. You can not switch context with federated authentication. |
| 43 |
|
| 44 |
|
| 45 |
.. attention:: |
| 46 |
|
| 47 |
Used identity, start and end of switching context process are logged! |
| 48 |
|
| 49 |
|
| 50 |
contextSwitchingPrefix is used to store real user's session Id. You can |
| 51 |
set this prefix ('switching' by default) by editing ``lemonldap-ng.ini`` |
| 52 |
in [portal] section: |
| 53 |
|
| 54 |
.. code-block:: ini |
| 55 |
|
| 56 |
[portal] |
| 57 |
contextSwitchingPrefix = switching |
| 58 |
|