Sid
Windows security identifier.
Constructor
Sid value
Constructs a SID from its canonical string or native binary representation.
Parameters:
| Name | Type | Description |
|---|---|---|
value |
Str|Bin |
SID representation |
Fields
revision
SID revision number.
identifier_authority
The 48-bit identifier authority as an integer.
sub_authority_count
Number of sub-authorities.
sub_authorities
Sub-authorities as an immutable Tuple.
Methods
lookup()
Resolves the SID in the active Windows VFS target.
Returns: SidName
Errors:
- Raises
sys.NotFoundErrorwhen the SID is unmapped. - Raises
UnsupportedErrorfor Unix targets.
to_bin()
Returns the native Windows packet representation.
Returns: Bin