From: Ben Klang Date: Wed, 9 Jun 2010 22:12:12 +0000 (-0400) Subject: Framework: Make sure when listing LDAP users we have an array to iterate X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=82cee4908842ce56c2ef76f7e6dc8fd7bcde3e55;p=horde.git Framework: Make sure when listing LDAP users we have an array to iterate --- diff --git a/framework/Auth/lib/Horde/Auth/Ldap.php b/framework/Auth/lib/Horde/Auth/Ldap.php index 9798ccb34..6fae77128 100644 --- a/framework/Auth/lib/Horde/Auth/Ldap.php +++ b/framework/Auth/lib/Horde/Auth/Ldap.php @@ -415,8 +415,7 @@ class Horde_Auth_Ldap extends Horde_Auth_Base * Note: You cannot override a server-side limit with this. */ $userlist = array(); try { - $search = $this->_ldap->search($this->_params['basedn'], $filter, $params); - + $search = $this->_ldap->search($this->_params['basedn'], $filter, $params)->as_struct(); $uid = Horde_String::lower($this->_params['uid']); foreach ($search as $val) { $userlist[] = $val[$uid][0];