Skip to content

Commit

Permalink
Rename Capability::hasStartTLS to Capability::hasStartTls()
Browse files Browse the repository at this point in the history
  • Loading branch information
lippserd committed Mar 12, 2015
1 parent f75c27f commit d8d0d88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/Icinga/Protocol/Ldap/Capability.php
Expand Up @@ -120,7 +120,7 @@ public function __construct($attributes = null)
*
* @return bool Whether StartTLS is supported
*/
public function hasStartTLS()
public function hasStartTls()
{
return isset($this->oids[self::LDAP_SERVER_START_TLS_OID]);
}
Expand Down
2 changes: 1 addition & 1 deletion library/Icinga/Protocol/Ldap/Connection.php
Expand Up @@ -502,7 +502,7 @@ protected function prepareNewConnection()

if ($this->connectionType === static::STARTTLS) {
$force_tls = false;
if ($this->capabilities->hasStartTLS()) {
if ($this->capabilities->hasStartTls()) {
if (@ldap_start_tls($ds)) {
Logger::debug('LDAP STARTTLS succeeded');
} else {
Expand Down

0 comments on commit d8d0d88

Please sign in to comment.