diff --git a/lam/lib/modules/inetOrgPerson.inc b/lam/lib/modules/inetOrgPerson.inc index 4bf5ef80..4589a067 100644 --- a/lam/lib/modules/inetOrgPerson.inc +++ b/lam/lib/modules/inetOrgPerson.inc @@ -4,7 +4,7 @@ $Id$ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) Copyright (C) 2003 - 2006 Tilo Lutz - 2005 - 2016 Roland Gruber + 2005 - 2017 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -37,8 +37,6 @@ $Id$ */ class inetOrgPerson extends baseModule implements passwordService { - /** caches the list of possible managers */ - private $cachedManagers = null; /** clear text password */ private $clearTextPassword = null; /** cache for departments */ @@ -3495,28 +3493,6 @@ class inetOrgPerson extends baseModule implements passwordService { return array(); } - /** - * Returns a list of possible managers. - * - * @return array list of format array(abstract DN => DN) - */ - private function getManagers() { - if ($this->cachedManagers != null) { - return $this->cachedManagers; - } - $dnUsers = searchLDAPByAttribute(null, null, 'inetOrgPerson', array('dn'), array('user')); - for ($i = 0; $i < sizeof($dnUsers); $i++) { - $dnUsers[$i] = $dnUsers[$i]['dn']; - } - usort($dnUsers, 'compareDN'); - array_unshift($dnUsers, '-'); - $this->cachedManagers = array(); - for ($i = 0; $i < sizeof($dnUsers); $i++) { - $this->cachedManagers[getAbstractDN($dnUsers[$i])] = $dnUsers[$i]; - } - return $this->cachedManagers; - } - /** * Loads cached data from LDAP such as departmets etc. */