Expand description
SAMR (MS-SAMR) — the Security Account Manager Remote protocol: enumerate domains,
users, groups, and (via aliases) local administrators. Exposed only over the
\PIPE\samr named pipe, so it rides an authenticated SMB transport (the next layer);
the interface identity and NDR request marshaling live here.
Modules§
Structs§
- Samr
Client - High-level SAMR client bound over an SMB named pipe (
\PIPE\samr). - Samr
Handle - A 20-byte RPC context handle (attributes u32 + 16-byte GUID) returned by open calls.
Functions§
- decode_
enum_ domains - Decode a SamrEnumerateDomainsInSamServer response: (resume handle, [(rid, name)]).
- decode_
lookup_ domain - encode_
connect2 - SamrConnect2(IN [unique,string] ServerName, IN ACCESS_MASK DesiredAccess) → handle.
- encode_
enum_ domains - SamrEnumerateDomainsInSamServer(IN handle, IN/OUT EnumerationContext, IN PreferedMaximumLength).
- encode_
enum_ users - SamrEnumerateUsersInDomain(IN handle, IN/OUT ctx, IN UserAccountControl, IN prefMax).
The response reuses the SAMPR_RID_ENUMERATION shape →
decode_enum_domains. - encode_
lookup_ domain - SamrLookupDomainInSamServer(IN handle, IN RPC_UNICODE_STRING name) → domain SID.
- encode_
open_ domain - SamrOpenDomain(IN handle, IN access, IN RPC_SID domain) → domain handle.
- samr_
syntax - The SAMR interface (v1.0).