mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
LSldap : added entries objects check returning search result
This commit is contained in:
parent
e3ee3911f2
commit
63d041796b
1 changed files with 4 additions and 0 deletions
|
@ -111,6 +111,10 @@ class LSldap {
|
||||||
}
|
}
|
||||||
$retInfos=array();
|
$retInfos=array();
|
||||||
foreach($ret -> entries() as $entry) {
|
foreach($ret -> entries() as $entry) {
|
||||||
|
if (!$entry instanceof Net_LDAP2_Entry) {
|
||||||
|
LSerror :: addErrorCode('LSldap_02',"LDAP search return an ".get_class($entry).". object");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$retInfos[]=array('dn' => $entry -> dn(), 'attrs' => $entry -> getValues());
|
$retInfos[]=array('dn' => $entry -> dn(), 'attrs' => $entry -> getValues());
|
||||||
}
|
}
|
||||||
return $retInfos;
|
return $retInfos;
|
||||||
|
|
Loading…
Reference in a new issue