function it_should_convert_a_value_from_ldap_to_a_php_bool()
{
$this->setAttribute('enabled');
$this->fromLdap('514')->shouldBeEqualTo(false);
$this->fromLdap('512')->shouldBeEqualTo(true);
$this->setAttribute('disabled');
// 514 represents a "normal account" with the disabled bit set.
$this->fromLdap('514')->shouldBeEqualTo(true);
$this->fromLdap('513')->shouldBeEqualTo(false);
// 66050 represents a "normal account" with the password never expires and disabled bits set.
$this->fromLdap('66050')->shouldBeEqualTo(true);
$this->setAttribute('passwordNeverExpires');
$this->fromLdap('66050')->shouldBeEqualTo(true);
// Everything in the map except for 'Password is Reversible'
$this->fromLdap('328194')->shouldBeEqualTo(true);
$this->setAttribute('disabled');
$this->fromLdap('328194')->shouldBeEqualTo(true);
$this->setAttribute('smartCardRequired');
$this->fromLdap('328194')->shouldBeEqualTo(true);
$this->setAttribute('trustedForAllDelegation');
$this->fromLdap('328194')->shouldBeEqualTo(true);
$this->setAttribute('passwordIsReversible');
$this->fromLdap('328194')->shouldBeEqualTo(false);
}