This App provide CAS authentication support, using the phpCAS library of Jasig.
This app requires the phpCAS library of Jasig. https://wiki.jasig.org/display/casc/phpcas
Install (at least) version 1.3.2 https://wiki.jasig.org/display/CASC/phpCAS+installation+guide
- Copy the 'user_cas' folder into the ownCloud's apps folder and make sure to set correct permissions for Apache.
- Access the ownCloud web interface with an user with admin privileges.
- Access the applications panel and enable the CAS app.
- Access the administration panel and configure the CAS app.
The app is configured by using the administration panel. Make sure to fill in all the fields provided.
CAS Server Version: Default is version 2.0, if you have no special configuration leave it as is.
CAS Server Hostname: The host name of the webserver hosting your CAS, lookup /etc/hosts or your DNS configuration
CAS Server Port: The port CAS is listening to. Default for HTTPS is 443.
CAS Server Path: The directory of your CAS. In common setups this path is /cas
Service URL: Service URL used to CAS authentication and redirection. Usefull when behind a reverse proxy.
Certification file: If you don't want to validate the certificate (i.e. self-signed certificates) then leave this blank. Otherwise enter the path to the certificate.
Disable CAS logout: If checked, you will only be logged out from owncloud
Autocreate user: This option enables automatic creation of users authenticated against CAS. This means, users which do not exist in the database yet authenticat against CAS and the app will create and store them in the database on their first login. Default: on.
Update user: This option uses the data provided by CAS to update user attributes each time they log in.
Link to LDAP backend: Link CAS authentication with LDAP users and groups backend to use the same owncloud user as if the user was logged in via LDAP.
If CAS provides extra attributes, user_cas can retrieve the values of them. Since their name differs in various setups it is necessary to map owncloud-attribute-names to CAS-attribute-names.
Email: Name of email attribute in CAS
Display Name: Name of display name attribute in CAS (this might be the "real name" of a user)
Group: Name of group attribute in CAS
Setting up the PHP-CAS library options :
PHP CAS path (CAS.php file): Set path to CAS.php file of the library to use. Usually the path will be /usr/share/php/CAS.php
PHP CAS debug file: Set path to the debug file.
-
If you enable the "Autocreate user after CAS login" option, a user will be created if he does not exist. If this option is disabled and the user does not exist, then the user will be not allowed to log in ownCloud. You might don't want this if you check "Link to LDAP backend"
-
If you enable the "Update user data" option, the app updates the user's email and group membership.
By default the CAS App will unlink all the groups from a user and will provide the group defined at the groupMapping attribute. If the groupMapping is not defined, the value of the defaultGroup field will be used instead. If both are undefined, then the user will be set with no groups. If you set the "protected groups" field, those groups will not be unlinked from the user.
Please contribute bug reports and feedback to https://github.com/owncloud/user_cas/issues If you are observing undesired behaviour, think it is a bug and want to tell us about, please include following parts:
- What led up to the situation?
- What exactly did you do (or not do) that was effective (or ineffective)?
- What was the outcome of this action?
- What outcome did you expect instead?
AGPL - http://www.gnu.org/licenses/agpl-3.0.html
- Sixto Martin Garcia - https://github.com/pitbulk
- David Willinger (Leonis Holding) - https://github.com/leoniswebDAVe
- Florian Hintermeier (Leonis Holding) - https://github.com/leonisCacheFlo
- brenard - https://github.com/brenard
- Takayuki Nagai - https://github.com/nagai-takayuki
- Leonis Holding - http://www.leonis.at/
- Alysis & Leonis @ GitHub - https://github.com/alysisLeonis
- ownCloud - http://owncloud.org
- ownCloud @ GitHub - https://github.com/owncloud