roundcube-cas.php
| 1 |
<?php
|
|---|---|
| 2 |
/**
|
| 3 |
* CAS Authentication
|
| 4 |
*
|
| 5 |
* configuration file
|
| 6 |
*/
|
| 7 |
|
| 8 |
include_once("configCAS/cas.inc.php"); |
| 9 |
|
| 10 |
// whether to act as a CAS proxy. If set to true, a proxy ticket will be
|
| 11 |
// retrieved from the CAS server to be used as password for logging into
|
| 12 |
// the IMAP server. This is the preferred method of authenticating
|
| 13 |
// to the IMAP backend.
|
| 14 |
// If set to false, the IMAP password specified below will be used.
|
| 15 |
$rcmail_config['cas_proxy'] = true; |
| 16 |
|
| 17 |
// directory where PGTs will be temporarily stored. Will only be used if
|
| 18 |
// cas_proxy is set to true.
|
| 19 |
$rcmail_config['cas_pgt_dir'] = '/tmp'; |
| 20 |
|
| 21 |
// name of the IMAP service. Will only be used if cas_proxy is set to true.
|
| 22 |
// This service name must be authorized to be used with the CAS server.
|
| 23 |
//FIXME
|
| 24 |
$rcmail_config['cas_imap_name'] = 'imap://%%adresse_ip_mail'; |
| 25 |
|
| 26 |
// whether the IMAP server caches proxy tickets it has received for subsequent
|
| 27 |
// requests. Will only be used if cas_proxy is set to true. If set to true,
|
| 28 |
// proxy tickets will be reused to connect to the IMAP server until an IMAP
|
| 29 |
// connection fails, after which a new proxy ticket will be retrieved. If
|
| 30 |
// set to false, a new proxy ticket will be retrieved before each IMAP
|
| 31 |
// request. Setting this to true and enabling caching on the IMAP server
|
| 32 |
// significantly reduces the number of requests made to the CAS server.
|
| 33 |
$rcmail_config['cas_imap_caching'] = true; |
| 34 |
|
| 35 |
// password for logging into the IMAP server. Will only be used if cas_proxy
|
| 36 |
// is set to false. The IMAP backend must accept this password for all
|
| 37 |
// authorized users.
|
| 38 |
$rcmail_config['cas_imap_password'] = ''; |
| 39 |
|
| 40 |
// CAS server host name.
|
| 41 |
$rcmail_config['cas_hostname'] = __CAS_SERVER; |
| 42 |
|
| 43 |
// CAS server port number.
|
| 44 |
$rcmail_config['cas_port'] = __CAS_PORT; |
| 45 |
|
| 46 |
// CAS service URI on the CAS server.
|
| 47 |
$rcmail_config['cas_uri'] = __CAS_FOLDER; |
| 48 |
|
| 49 |
// CAS server SSL validation: 'self' for self-signed certificate, 'ca' for
|
| 50 |
// certificate from a CA, empty for no SSL validation.
|
| 51 |
$rcmail_config['cas_validation'] = ''; |
| 52 |
|
| 53 |
// CAS server certificate in PEM format, used when CAS validation is set to
|
| 54 |
// 'self' or 'ca'.
|
| 55 |
$rcmail_config['cas_cert'] = '/path/to/cert/file'; |
| 56 |
|
| 57 |
// CAS service login URL.
|
| 58 |
$rcmail_config['cas_login_url'] = ''; |
| 59 |
|
| 60 |
// CAS service logout URL.
|
| 61 |
$rcmail_config['cas_logout_url'] = ''; |
| 62 |
?>
|