Write none instead of plaintext for unencrypted LDAP resources

This commit is contained in:
Eric Lippmann 2015-03-13 00:47:23 +01:00
parent d8d0d88c95
commit 9f0af662a7
1 changed files with 3 additions and 3 deletions

View File

@ -67,17 +67,17 @@ class LdapResourceForm extends Form
'label' => $this->translate('Encryption'),
'description' => $this->translate(
'Whether to encrypt communication. Choose STARTTLS or LDAPS for encrypted communication or'
. ' Plaintext for unencrypted communication'
. ' none for unencrypted communication'
),
'multiOptions' => array(
'plaintext' => $this->translate('Plaintext'),
'none' => $this->translate('None'),
Connection::STARTTLS => 'STARTTLS',
Connection::LDAPS => 'LDAPS'
)
)
);
if (isset($formData['encryption']) && $formData['encryption'] !== 'plaintext') {
if (isset($formData['encryption']) && $formData['encryption'] !== 'none') {
// TODO(jom): Do not show this checkbox unless the connection is actually failing due to certificate errors
$this->addElement(
'checkbox',