| 1 |
Viewer module |
| 2 |
============= |
| 3 |
|
| 4 |
This module can be useful to allow certain users to edit WebSSO |
| 5 |
configuration in Read Only mode. |
| 6 |
|
| 7 |
Configuration |
| 8 |
------------- |
| 9 |
|
| 10 |
Parameters are set in ``lemonldap-ng.ini`` file, section [manager]: |
| 11 |
|
| 12 |
.. code-block:: ini |
| 13 |
|
| 14 |
[manager] |
| 15 |
enabledModules = conf, sessions, notifications, 2ndFA, viewer |
| 16 |
|
| 17 |
defaultModule = viewer |
| 18 |
|
| 19 |
viewerHiddenKeys = samlIDPMetaDataNodes samlSPMetaDataNodes managerPassword ManagerDn globalStorageOptions persistentStorageOptions |
| 20 |
viewerAllowBrowser = $groups =~ /\bsu\b/ |
| 21 |
viewerAllowDiff = $groups =~ /\bsu\b/ |
| 22 |
|
| 23 |
- **Parameters**: |
| 24 |
|
| 25 |
- **enabledModules**: list of modules to enable |
| 26 |
- **defaultModule**: module displayed by default route |
| 27 |
(http://manager.example.com/manager.(fcgi|psgi) |
| 28 |
- **viewerHiddenKeys**: keys not displayed by Viewer |
| 29 |
- **viewerAllowBrowser**: allow to browse other configurations |
| 30 |
- **viewerAllowDiff**: enable "difference with previous" link |
| 31 |
|
| 32 |
|
| 33 |
.. danger:: |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
You have to set access rules to allow/deny users to access modules. |
| 38 |
|
| 39 |
In Manager: \* Declare a Virtual Host : manager.example.com \* Set an |
| 40 |
access rule for each enabled module : |
| 41 |
|
| 42 |
#. Configuration : ^/(.*?\.(fcgi|psgi)/)?(manager\.html|confs) = $uid |
| 43 |
eq 'dwho' |
| 44 |
#. Notifications : ^/(.*?\.(fcgi|psgi)/)?notifications = $uid eq 'dwho' |
| 45 |
#. Sessions : ^/(.*?\.(fcgi|psgi)/)?sessions = $uid eq 'dwho' |
| 46 |
#. Viewer : ^/(.*?\.(fcgi|psgi)/)?view = $uid =~ /\b(?:dwho|rtyler)\b/ |
| 47 |
#. Default : $uid =~ /\b(?:dwho|rtyler)\b/ |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
.. attention:: |
| 53 |
|
| 54 |
To avoid that Read-Only users can access to |
| 55 |
configuration module by using default route, keep in mind to set |
| 56 |
'defaultModule' option |