CAS Authentication plugin for limesurvey (based on phpCAS) This version of the plugin works with limesurvey 2.6 and above (except 2.6.3) Check the release v2.0 to get the version for Limesurvey 2.x
This plugin allows you to force CAS authentication to access the admin interface of Limesurvey. It also allows you to optionnally create users after the first authentication using LDAP or CAS attributes. If this plugin is activated, you can force local authentication (e.g. to connect as admin) by using the url : ls_url/index.php/admin/authentication/sa/login?noAuthCAS=true
If you want to automatically create users when first connected, you need to define the default permissions in the 'config' array of the file /application/config/config.php
```
'auth_cas_autocreate_permissions' => array(
'surveys' => array('create'=>true)
),
'auth_cas_template_list' => array(
'default',
'limespired'
),
```
When a user is automatically created, there's no mail sent to him.
But if you're creating a user in the admin interface, a mail is sent containing the generated password. If you want to avoid confusion and not send the password in the email, you can add the following configuration in the file /application/config/config.php
```
'auth_webserver' => true
```
This change indicates to Limesurvey that the authentication is managed by an external system.
When a user connects for the first time, the identifier retrieved by the CAS plugin is stored in the database as the user typed it.
Example: User logged with JohnDoe
, userId stored in the database will beJohnDoe
You can force the identifier to be lowered in the database with the casUserIdToLowercase
option.
Be careful, if you activate this option, it will probably be necessary to update user identifiers already registered in the database.
Execute this SQL statement :
UPDATE lime_users SET users_name = LOWER(users_name);