protected function getValuesForModifyAction($attribute, $action)
{
$values = [];
while ($this->currentLine() !== LdifEntryModify::SEPARATOR && !$this->isEndOfLdif() && !$this->isEndOfEntry()) {
if ($this->isComment()) {
$this->nextLine();
continue;
}
list($attrKey, $attrValue) = $this->getKeyAndValue($this->currentLine());
if ($attribute !== $attrKey) {
$this->throwException(sprintf('Attribute "%s" does not match "%s" for %s values.', $attrValue, $attribute, $action));
}
$values[] = $attrValue;
$this->nextLine();
}
return $values;
}