mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 11:52:59 +01:00
LSldapObject::loadData(): explicitly list need attributes in LDAP request
This commit is contained in:
parent
9edfa2b92e
commit
5315005382
1 changed files with 1 additions and 1 deletions
|
@ -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) ) )
|
||||
|
|
Loading…
Reference in a new issue