Documentation
¶
Overview ¶
Package samuser provides constants and encoding/decoding of Microsoft Security Account Manager (SAM)-related structures.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Marshal ¶
func Marshal(p *UserParams) ([]byte, error)
Marshal marshals UserParams into mangled byte form.
func MarshalUnmangled ¶
func MarshalUnmangled(p *UserParams) ([]byte, error)
MarshalUnmangled marshals UserParams into unmangled byte form.
Types ¶
type UserParams ¶
type UserParams struct {
// LegacyRASData contains various types of legacy data.
// Does not seem to be used anymore, do not touch.
LegacyRASData [96]byte
// Props contains various named properties.
Props map[string]Value
// contains filtered or unexported fields
}
UserParams contains the decoded contents of the UserParms field (now userParameters in LDAP).
func Unmarshal ¶
func Unmarshal(in []byte) (*UserParams, error)
Unmarshal unmarshals UserParams from a mangled input. These can be identified by a "P" at byte 48. Any LDAP-derived inputs are mangled.
func UnmarshalUnmangled ¶
func UnmarshalUnmangled(data []byte) (*UserParams, error)
UnmarshalUnmangled unmarshals UserParams from a regular (non-mangled) input. Can be identified by a "P" at byte 96.
Click to show internal directories.
Click to hide internal directories.