/**
* Convert values to LDAP.
*
* @param array $entry The LDAP entry.
* @return array
*/
public function toLdap(array $entry)
{
$toLdap = [];
foreach ($entry as $attribute => $value) {
$toLdap[$this->schema->getAttributeToLdap($attribute)] = $value;
}
return $toLdap;
}