aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-04-23 12:32:17 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-04-23 12:32:17 +0200
commit6ee7dc5f590e26f54d2a986a72bb328ed0b0db8f (patch)
treef27b175815e3f66fe28a1017ae797b02109706e4 /apps/user_ldap
parentfffbf261590c15bac92e9437fe7d4b99a485a072 (diff)
downloadnextcloud-server-6ee7dc5f590e26f54d2a986a72bb328ed0b0db8f.tar.gz
nextcloud-server-6ee7dc5f590e26f54d2a986a72bb328ed0b0db8f.zip
only retrieve requested attributes
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib_ldap.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib_ldap.php b/apps/user_ldap/lib_ldap.php
index eea4a82011c..1016b955dcb 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)) {