owncloud-archive / user_cas

Currently maintained in :
https://github.com/felixrupp/user_cas
10 stars 49 forks source link

INTRODUCTION

This App provide CAS authentication support, using the phpCAS library of Jasig.

INSTALLATION

DEPENDENCIES

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

STEPS

  1. Copy the 'user_cas' folder into the ownCloud's apps folder and make sure to set correct permissions for Apache.
  2. Access the ownCloud web interface with an user with admin privileges.
  3. Access the applications panel and enable the CAS app.
  4. Access the administration panel and configure the CAS app.

CONFIGURATION

The app is configured by using the administration panel. Make sure to fill in all the fields provided.

CAS Server

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

Basic

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.

Mapping

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

PHP-CAS Library

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.

EXTRA INFO

Bugs & Support

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:

ABOUT

License

AGPL - http://www.gnu.org/licenses/agpl-3.0.html

Authors

Links