protected function unicodePwdHack(BatchModifyOperation $operation)
{
if (!$this->isUnicodePwdHackNeeded()) {
return;
}
foreach ($operation->getBatchCollection() as $batch) {
if (strtolower($batch->getAttribute()) !== 'unicodepwd') {
continue;
}
$values = $batch->getValues();
$batch->setValues(base64_encode(reset($values)));
}
}