Search a given DN for attributes, and return the resulting associative
array.
public getAttributes ( string $dn, string | array $attributes = null, integer $maxsize = null ) : array | ||
$dn | string | The DN of an element. |
$attributes | string | array | The names of the attribute(s) to retrieve. Defaults to NULL; that is, all available attributes. Note that this is not very effective. |
$maxsize | integer | The maximum size of any attribute's value(s). If exceeded, the attribute will not be returned. |
Résultat | array | The array of attributes and their values. |