From 6ee7dc5f590e26f54d2a986a72bb328ed0b0db8f Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 23 Apr 2012 12:32:17 +0200 Subject: [PATCH] only retrieve requested attributes --- apps/user_ldap/lib_ldap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user_ldap/lib_ldap.php b/apps/user_ldap/lib_ldap.php index eea4a82011..1016b955dc 100644 --- a/apps/user_ldap/lib_ldap.php +++ b/apps/user_ldap/lib_ldap.php @@ -73,7 +73,7 @@ class OC_LDAP { * Executes an LDAP search */ static public function search($filter, $attr = null) { - $sr = ldap_search(self::getConnectionResource(), self::$ldapBase, $filter); + $sr = ldap_search(self::getConnectionResource(), self::$ldapBase, $filter, array($attr)); $findings = ldap_get_entries(self::getConnectionResource(), $sr ); if(!is_null($attr)) {