public function __construct($sid)
{
if (LdapUtilities::isValidSid($sid)) {
$this->decodeFromString($sid);
} elseif (array_key_exists(strtoupper($sid), self::SHORT_NAME)) {
$this->decodeFromString(self::SHORT_NAME[strtoupper($sid)]);
} else {
$this->decodeFromBinary($sid);
}
}