From 53150053823969b9b3b8a0320a6c39f2eb1061dd Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 21 Sep 2020 12:45:39 +0200 Subject: [PATCH] LSldapObject::loadData(): explicitly list need attributes in LDAP request --- src/includes/class/class.LSldapObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/includes/class/class.LSldapObject.php b/src/includes/class/class.LSldapObject.php index 1f191fbe..773043bb 100644 --- a/src/includes/class/class.LSldapObject.php +++ b/src/includes/class/class.LSldapObject.php @@ -102,7 +102,7 @@ class LSldapObject extends LSlog_staticLoggerClass { array ($filter, $additional_filter) ); } - $data = LSldap :: getAttrs($dn, $filter); + $data = LSldap :: getAttrs($dn, $filter, array_keys($this -> attrs)); if(is_array($data) && !empty($data)) { foreach($this -> attrs as $attr_name => $attr) { if( !$this -> attrs[$attr_name] -> loadData( (isset($data[$attr_name])?$data[$attr_name]:NULL) ) )