only retrieve requested attributes

This commit is contained in:
Arthur Schiwon 2012-04-23 12:32:17 +02:00
parent fffbf26159
commit 6ee7dc5f59
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {