mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
LSldap : fix/improve getAttr() method
This commit is contained in:
parent
788bc23b98
commit
baeea8d670
1 changed files with 1 additions and 6 deletions
|
@ -194,12 +194,7 @@ class LSldap {
|
|||
$infos = ldap_explode_dn($dn,0);
|
||||
if((!$infos)||($infos['count']==0))
|
||||
return;
|
||||
$basedn='';
|
||||
for ($i=1;$i<$infos['count'];$i++) {
|
||||
$sep=($basedn=='')?'':',';
|
||||
$basedn.=$sep.$infos[$i];
|
||||
}
|
||||
$return=self :: search($infos[0],$basedn);
|
||||
$return=self :: search('(objectClass=*)',$dn);
|
||||
return $return[0]['attrs'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue