From b19ecbfb430d5e915935bbeaea4e4f76cfe39dae Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 25 Sep 2015 16:21:33 +0200 Subject: [PATCH] LdapUserGroupBackend: Remove the remaining code duplicates refs #9950 refs #9772 --- .../UserGroup/LdapUserGroupBackend.php | 57 ------------------- 1 file changed, 57 deletions(-) diff --git a/library/Icinga/Authentication/UserGroup/LdapUserGroupBackend.php b/library/Icinga/Authentication/UserGroup/LdapUserGroupBackend.php index 9cd607c58..a56e1fe71 100644 --- a/library/Icinga/Authentication/UserGroup/LdapUserGroupBackend.php +++ b/library/Icinga/Authentication/UserGroup/LdapUserGroupBackend.php @@ -103,63 +103,6 @@ class LdapUserGroupBackend extends LdapRepository implements UserGroupBackendInt ) ); - /** - * Normed attribute names based on known LDAP environments - * - * @var array - */ - protected $normedAttributes = array( - 'uid' => 'uid', - 'gid' => 'gid', - 'user' => 'user', - 'group' => 'group', - 'member' => 'member', - 'inetorgperson' => 'inetOrgPerson', - 'samaccountname' => 'sAMAccountName' - ); - - /** - * Return the given attribute name normed to known LDAP enviroments, if possible - * - * @param string $name - * - * @return string - */ - protected function getNormedAttribute($name) - { - $loweredName = strtolower($name); - if (array_key_exists($loweredName, $this->normedAttributes)) { - return $this->normedAttributes[$loweredName]; - } - - return $name; - } - - /** - * Set this repository's name - * - * @param string $name - * - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - - /** - * Return this repository's name - * - * In case no name has been explicitly set yet, the class name is returned. - * - * @return string - */ - public function getName() - { - return $this->name; - } - /** * Set the base DN to use for a user query *