Skip to content

Commit

Permalink
Use encryption instead of connection for the encryption setting of a …
Browse files Browse the repository at this point in the history
…LDAP resource
  • Loading branch information
lippserd committed Mar 12, 2015
1 parent 61e01a4 commit 708f083
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/forms/Config/Resource/LdapResourceForm.php
Expand Up @@ -60,11 +60,11 @@ public function createElements(array $formData)
);
$this->addElement(
'select',
'connection',
'encryption',
array(
'required' => true,
'autosubmit' => true,
'label' => $this->translate('Connection'),
'label' => $this->translate('Encryption'),
'description' => $this->translate(
'Whether to encrypt communication. Choose STARTTLS or LDAPS for encrypted communication or'
. ' Plaintext for unencrypted communication'
Expand All @@ -77,7 +77,7 @@ public function createElements(array $formData)
)
);

if (isset($formData['connection']) && $formData['connection'] !== 'plaintext') {
if (isset($formData['encryption']) && $formData['encryption'] !== 'plaintext') {
// TODO(jom): Do not show this checkbox unless the connection is actually failing due to certificate errors
$this->addElement(
'checkbox',
Expand Down

0 comments on commit 708f083

Please sign in to comment.