public function toLdap($values)
{
$this->validateCurrentAttribute($this->options);
if ($this->getOperationType() == AttributeConverterInterface::TYPE_SEARCH_TO) {
$values = $this->getDnFromValue($values);
} else {
$this->createOperationsFromValues($values);
}
return $values;
}