CAS authentication plugin without LDAP but with CAS attributes
Compatible with DokuWiki
Frusterick Manners, Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor Of Tsort
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to authssocas, ssocas
External requirements: This plugin requires the following additional components that must be installed separately:
PHP needs to be configured with curl and xml support for phpCAS to work see phpCAS requirements
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
You have to download the phpCAS library and place it in the folder of the plugin so that the file lib/plugins/authplaincas/phpCAS/CAS.php
exists.
To really use this authentication plugin some customization is necessary next to the settings available in the plugin settings interface.
You should copy the file plaincas.settings.php
to your conf
folder and do the modifications there.
(alternatively you can move it wherever you want and specify the path in the conf/local.protected.php
file (create when not existing) with $conf['plugin']['authplaincas']['settings_file']
)
The four functions in plaincas.settings.php
are slightly documented.
In general the procedure is as follows:
plaincas.settings.php
fileplaincas_user_attributes
plaincas_pattern_attributes
plaincas_pattern_attributes
are checked against the regular expressions returned from plaincas_group_patterns
Maybe you don't want everybody from the CAS server to log in on your dokuwiki?
No problem! specify a comma separated list of groups of which at least one has to be assigned in order for the user to be saved.
You want to assign groups to certain usernames rather than the CAS attributes?
No problem! in the plaincas.settings.php
file you can return an array with the function plaincas_custom_groups
with the groups as keys and an array with the usernames as values.
In the future the plugin could also support the local users list that authplain uses.
Make sure the newest version of the plugin is installed. If using the plugin manager make sure the current version is installed. If you continue to have problems put this in conf/local.php
$conf['plugin']['authplaincas']['debug'] = TRUE;
[discussions should ideally be deleted and turned into FAQ entries along the way]
Could be placed on an external page (e.g. plugin:pluginname:discussion) to have a distinction between user comments and author docs