only retrieve requested attributes
This commit is contained in:
parent
fffbf26159
commit
6ee7dc5f59
|
@ -73,7 +73,7 @@ class OC_LDAP {
|
||||||
* Executes an LDAP search
|
* Executes an LDAP search
|
||||||
*/
|
*/
|
||||||
static public function search($filter, $attr = null) {
|
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 );
|
$findings = ldap_get_entries(self::getConnectionResource(), $sr );
|
||||||
|
|
||||||
if(!is_null($attr)) {
|
if(!is_null($attr)) {
|
||||||
|
|
Loading…
Reference in New Issue