mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
only retrieve requested attributes
This commit is contained in:
parent
fffbf26159
commit
6ee7dc5f59
1 changed files with 1 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue