public function hydrateFromLdap(array $entry)
{
$attributes = [];
foreach ($entry as $key => $value) {
if (is_string($key)) {
$attributes = $this->setAttributeFromLdap($attributes, $key, $value);
}
}
$attributes = $this->convertNamesFromLdap($attributes);
$attributes = $this->convertValuesFromLdap($attributes);
return $attributes;
}