public function fromLdap($value)
{
$this->validateCurrentAttribute($this->getOptions()['typeMap']);
$value = (bool) ((int) $value & (int) $this->getArrayValue($this->getOptions()['typeMap'], $this->getAttribute()));
// Invert the value for the distribution group, as it is the absence of the security bit.
return $this->shouldInvertValue() ? !$value : $value;
}