Rename Capability::hasStartTLS to Capability::hasStartTls()
This commit is contained in:
parent
f75c27fc99
commit
d8d0d88c95
|
@ -120,7 +120,7 @@ class Capability {
|
||||||
*
|
*
|
||||||
* @return bool Whether StartTLS is supported
|
* @return bool Whether StartTLS is supported
|
||||||
*/
|
*/
|
||||||
public function hasStartTLS()
|
public function hasStartTls()
|
||||||
{
|
{
|
||||||
return isset($this->oids[self::LDAP_SERVER_START_TLS_OID]);
|
return isset($this->oids[self::LDAP_SERVER_START_TLS_OID]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -502,7 +502,7 @@ class Connection
|
||||||
|
|
||||||
if ($this->connectionType === static::STARTTLS) {
|
if ($this->connectionType === static::STARTTLS) {
|
||||||
$force_tls = false;
|
$force_tls = false;
|
||||||
if ($this->capabilities->hasStartTLS()) {
|
if ($this->capabilities->hasStartTls()) {
|
||||||
if (@ldap_start_tls($ds)) {
|
if (@ldap_start_tls($ds)) {
|
||||||
Logger::debug('LDAP STARTTLS succeeded');
|
Logger::debug('LDAP STARTTLS succeeded');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue