Add option to disable SSL certificate checks when triggering Free/Busy

This commit is contained in:
Thomas Bruederli 2012-05-16 17:13:49 +02:00
parent e50d35c1a3
commit 3ec99f89a6
2 changed files with 5 additions and 0 deletions

View file

@ -38,3 +38,6 @@ $rcmail_config['kolab_cache'] = true;
// Defaults to https://<imap-server->/freebusy // Defaults to https://<imap-server->/freebusy
$rcmail_config['kolab_freebusy_server'] = 'https://<some-host>/<freebusy-path>'; $rcmail_config['kolab_freebusy_server'] = 'https://<some-host>/<freebusy-path>';
// Set this option to disable SSL certificate checks when triggering Free/Busy (enabled by default)
$rcmail_config['kolab_ssl_verify_peer'] = false;

View file

@ -737,7 +737,9 @@ class kolab_storage_folder
require_once('HTTP/Request2.php'); require_once('HTTP/Request2.php');
try { try {
$rcmail = rcube::get_instance();
$request = new HTTP_Request2($url); $request = new HTTP_Request2($url);
$request->setConfig(array('ssl_verify_peer' => $rcmail->config->get('kolab_ssl_verify_peer', true)));
// set authentication credentials // set authentication credentials
if ($auth_user && $auth_passwd) if ($auth_user && $auth_passwd)