Rename Capability::hasStartTLS to Capability::hasStartTls()

This commit is contained in:
Eric Lippmann 2015-03-13 00:29:00 +01:00
parent f75c27fc99
commit d8d0d88c95
2 changed files with 2 additions and 2 deletions

View File

@ -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]);
} }

View File

@ -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 {