/**
* Reset any specific LDAP controls used with this operation. This is to make sure they are not accidentally used in
* future operations when it is not expected.
*
* @param LdapOperationInterface $operation
*/
protected function resetLdapControls(LdapOperationInterface $operation)
{
foreach ($operation->getControls() as $control) {
$reset = clone $control;
$reset->setValue(false);
$this->connection->setControl($reset);
}
}