mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
Rename Ldap\Connetion::SSL to ::LDAPS
The SSL constant was used to denote LDAP over TLS/SSL. In fact both STARTTLS and LDAPS use encrypted TLS/SSL communication w/ STARTTLS upgrading a plain text connection and LDAPS using a separate port. Thus speaking of SSL only for LDAPS and TLS only for STARTTLS is not correct.
This commit is contained in:
parent
1b9ddaacac
commit
86f3ce9133
@ -70,7 +70,7 @@ class LdapResourceForm extends Form
|
|||||||
),
|
),
|
||||||
'multiOptions' => array(
|
'multiOptions' => array(
|
||||||
'plaintext' => $this->translate('Plaintext'),
|
'plaintext' => $this->translate('Plaintext'),
|
||||||
Connection::SSL => 'Secure Sockets Layer (SSL)',
|
Connection::LDAPS => 'Secure Sockets Layer (SSL)',
|
||||||
Connection::STARTTLS => 'Transport Layer Security (TLS)'
|
Connection::STARTTLS => 'Transport Layer Security (TLS)'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -43,7 +43,7 @@ class Connection
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
const SSL = 'ssl';
|
const LDAPS = 'ssl';
|
||||||
|
|
||||||
protected $ds;
|
protected $ds;
|
||||||
protected $hostname;
|
protected $hostname;
|
||||||
@ -481,12 +481,12 @@ class Connection
|
|||||||
*/
|
*/
|
||||||
protected function prepareNewConnection()
|
protected function prepareNewConnection()
|
||||||
{
|
{
|
||||||
if ($this->connectionType === static::STARTTLS || $this->connectionType === static::SSL) {
|
if ($this->connectionType === static::STARTTLS || $this->connectionType === static::LDAPS) {
|
||||||
$this->prepareTlsEnvironment();
|
$this->prepareTlsEnvironment();
|
||||||
}
|
}
|
||||||
|
|
||||||
$hostname = $this->hostname;
|
$hostname = $this->hostname;
|
||||||
if ($this->connectionType === static::SSL) {
|
if ($this->connectionType === static::LDAPS) {
|
||||||
$hostname = 'ldaps://' . $hostname;
|
$hostname = 'ldaps://' . $hostname;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user