Debian Codegraph @

doc/sources/admin/applications/limesurvey.rst

raw
1 LimeSurvey
2 ==========
3
4 |image0|
5
6 Presentation
7 ------------
8
9 `LimeSurvey <http://www.limesurvey.org>`__ is a web survey software
10 written in PHP.
11
12 HTTP Headers
13 ------------
14
15 LimeSurvey has a webserver authentication mode that allows one to
16 integrate it directly into LemonLDAP::NG.
17
18 To have a stronger integration, we will configure LimeSurvey to
19 autocreate unknown users and use HTTP headers to fill name and mail.
20
21
22 .. attention::
23
24 We suppose that LimeSurvey is installed in
25 /var/www/html/limesurvey
26
27 LimeSurvey configuration
28 ~~~~~~~~~~~~~~~~~~~~~~~~
29
30 In Administration panel, go in Configuration > Parameters > Extensions
31 manager. Select the WebServer module and configure it.
32
33 |image1|
34
35 This is enough for the authentication part.
36
37
38 .. tip::
39
40 If you are blocked, you can deactivate the plugin with this
41 request in database:
42
43 ::
44
45 update lime_plugins SET active=0 where name="Authwebserver";
46
47
48
49 To configure account autocreation, you need to edit
50 application/config/config.php: The configuration is done in config.php:
51
52 ::
53
54 vi /var/www/html/limesurvey/application/config/config.php
55
56 .. code-block:: php
57
58 'config'=>array(
59 // debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this
60 // then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
61 // on your webspace.
62 // LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
63 'debug'=>0,
64 'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2
65 // Update default LimeSurvey config here
66 'auth_webserver_autocreate_user' => true,
67 'auth_webserver_autocreate_profile' => Array('full_name' => $_SERVER['HTTP_AUTH_CN'],'email' => $_SERVER['HTTP_AUTH_MAIL'],'lang'=>'en'),
68 'auth_webserver_autocreate_permissions' => Array('surveys' => array('create'=>true,'read'=>false,'update'=>false,'delete'=>false)),
69 )
70
71 See also
72 https://manual.limesurvey.org/Optional_settings#Authentication_delegation_with_automatic_user_import
73
74 LimeSurvey virtual host
75 ~~~~~~~~~~~~~~~~~~~~~~~
76
77 Configure LimeSurvey virtual host like other
78 :doc:`protected virtual host<../configvhost>`.
79
80 LimeSurvey virtual host in Manager
81 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82
83 Go to the Manager and :doc:`create a new virtual host<../configvhost>`
84 for LimeSurvey.
85
86 Headers
87 ^^^^^^^
88
89 =========== ==============
90 Header name Description
91 =========== ==============
92 Auth-User user login
93 Auth-Cn user full name
94 Auth-Mail user email
95 =========== ==============
96
97 Rules
98 ^^^^^
99
100 ========= =========== ========================================
101 Rule name Expression Description
102 ========= =========== ========================================
103 Logout /sa/logout$ Logout rule (for example logout_app_sso)
104 Admin Allow only admin and superadmin users
105 Default default Allow only users with a LimeSurvey role
106 ========= =========== ========================================
107
108
109 .. tip::
110
111 You can set the default access to:
112
113 * **accept**: all authenticated users will access surveys
114 * **unprotect**: no authentication will be asked to access surveys
115
116
117
118 .. |image0| image:: /applications/limesurvey_logo.png
119 :class: align-center
120 .. |image1| image:: /applications/screenshot_limesurvey_configuration.png
121 :class: align-center
122