Sid
Windows security identifier.
Example
Constructor
Sid value
Constructs a SID from one of its spellings.
Parameters
| Name | Type | Description |
|---|---|---|
value |
(Str | Bin | WellKnownSid) |
Canonical string, native packet, or well-known SID. |
Errors
ValueError for a malformed representation.
Fields
identifier_authority @ (IdentifierAuthority | Int)The identifier authority, or its 48-bit value when it has no symbol.
revision @ IntSID revision number.
sub_authorities @ Tuple[...Int]The sub-authorities.
sub_authority_count @ IntNumber of sub-authorities.
Methods
lookup() -> SidName
Resolves the SID in the active Windows VFS target.
Errors
| Exception | Condition |
|---|---|
sys.NotFoundError |
The SID is unmapped |
UnsupportedError |
The active VFS target is Unix |
to_bin() -> Bin
Returns the native Windows packet representation.