From 82cee4908842ce56c2ef76f7e6dc8fd7bcde3e55 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Wed, 9 Jun 2010 18:12:12 -0400 Subject: [PATCH] Framework: Make sure when listing LDAP users we have an array to iterate --- framework/Auth/lib/Horde/Auth/Ldap.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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]; -- 2.11.0