Use getValue() (Bug #9196).
authorJan Schneider <jan@horde.org>
Mon, 20 Sep 2010 16:58:40 +0000 (18:58 +0200)
committerJan Schneider <jan@horde.org>
Mon, 20 Sep 2010 16:58:40 +0000 (18:58 +0200)
framework/Auth/lib/Horde/Auth/Ldap.php

index 96b2066..f9af827 100644 (file)
@@ -390,11 +390,10 @@ class Horde_Auth_Ldap extends Horde_Auth_Base
             $search = $this->_ldap->search(
                 $this->_params['basedn'],
                 Horde_Ldap_Filter::build(array('filter' => $this->_params['filter'])),
-                $params)
-                ->asArray();
+                $params);
             $uid = Horde_String::lower($this->_params['uid']);
             foreach ($search as $val) {
-                $userlist[] = $val[$uid][0];
+                $userlist[] = $val->getValue($uid, 'single');
             }
         } catch (Horde_Ldap_Exception $e) {}