Add option to disable SSL certificate checks when triggering Free/Busy
This commit is contained in:
parent
e50d35c1a3
commit
3ec99f89a6
2 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue