From 3f5cd4b670062c57c9e550f6e031a8a943be25f8 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 23 Jun 2015 15:16:53 +0200 Subject: [PATCH] Ldap\Connection: Rename method getDN() to getDn() --- library/Icinga/Protocol/Ldap/Connection.php | 2 +- library/Icinga/Protocol/Ldap/Query.php | 2 +- library/Icinga/Protocol/Ldap/Root.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library/Icinga/Protocol/Ldap/Connection.php b/library/Icinga/Protocol/Ldap/Connection.php index 038a45c42..966dd2667 100644 --- a/library/Icinga/Protocol/Ldap/Connection.php +++ b/library/Icinga/Protocol/Ldap/Connection.php @@ -113,7 +113,7 @@ class Connection implements Selectable return $this->port; } - public function getDN() + public function getDn() { return $this->root_dn; } diff --git a/library/Icinga/Protocol/Ldap/Query.php b/library/Icinga/Protocol/Ldap/Query.php index fe6539515..62433886a 100644 --- a/library/Icinga/Protocol/Ldap/Query.php +++ b/library/Icinga/Protocol/Ldap/Query.php @@ -156,7 +156,7 @@ class Query extends SimpleQuery { $result = $this->fetchAll(); $sorted = array(); - $quotedDn = preg_quote($this->ds->getDN(), '/'); + $quotedDn = preg_quote($this->ds->getDn(), '/'); foreach ($result as $key => & $item) { $new_key = LdapUtils::implodeDN( array_reverse( diff --git a/library/Icinga/Protocol/Ldap/Root.php b/library/Icinga/Protocol/Ldap/Root.php index 769437a31..5f1fb545d 100644 --- a/library/Icinga/Protocol/Ldap/Root.php +++ b/library/Icinga/Protocol/Ldap/Root.php @@ -215,7 +215,7 @@ class Root */ public function getDN() { - return $this->connection->getDN(); + return $this->connection->getDn(); } /**