allow to specify SSL CA certificates in LAM main configuration

This commit is contained in:
Roland Gruber 2013-08-15 15:30:19 +00:00
parent 001f43d729
commit 1ca4f12b8d
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ $sslUploadBtn = new htmlButton('sslCaCertUpload', _('Upload'));
$sslUploadBtn->setIconClass('upButton'); $sslUploadBtn->setIconClass('upButton');
$sslUploadBtn->setTitle(_('Upload CA certificate in DER/PEM format.')); $sslUploadBtn->setTitle(_('Upload CA certificate in DER/PEM format.'));
$sslButtonTable->addElement($sslUploadBtn, true); $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 = new htmlGroup();
$sslImportGroup->addElement(new htmlOutputText('ldaps://')); $sslImportGroup->addElement(new htmlOutputText('ldaps://'));
$sslImportServerUrl = !empty($_POST['serverurl']) ? $_POST['serverurl'] : ''; $sslImportServerUrl = !empty($_POST['serverurl']) ? $_POST['serverurl'] : '';