From 1ca4f12b8d12f813797f636d38491aec5690480d Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 15 Aug 2013 15:30:19 +0000 Subject: [PATCH] allow to specify SSL CA certificates in LAM main configuration --- lam/templates/config/mainmanage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/templates/config/mainmanage.php b/lam/templates/config/mainmanage.php index a073eb6f..41938e5b 100644 --- a/lam/templates/config/mainmanage.php +++ b/lam/templates/config/mainmanage.php @@ -289,7 +289,7 @@ $sslUploadBtn = new htmlButton('sslCaCertUpload', _('Upload')); $sslUploadBtn->setIconClass('upButton'); $sslUploadBtn->setTitle(_('Upload CA certificate in DER/PEM format.')); $sslButtonTable->addElement($sslUploadBtn, true); -if (function_exists('stream_socket_client')) { +if (function_exists('stream_socket_client') && function_exists('stream_context_get_params')) { $sslImportGroup = new htmlGroup(); $sslImportGroup->addElement(new htmlOutputText('ldaps://')); $sslImportServerUrl = !empty($_POST['serverurl']) ? $_POST['serverurl'] : '';