lsacap

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Syntax UUID
	LsacapSyntaxUUID = &uuid.UUID{TimeLow: 0xafc07e2e, TimeMid: 0x311c, TimeHiAndVersion: 0x4435, ClockSeqHiAndReserved: 0x80, ClockSeqLow: 0x8c, Node: [6]uint8{0xc4, 0x83, 0xff, 0xee, 0xc7, 0xc9}}
	// Syntax ID
	LsacapSyntaxV1_0 = &dcerpc.SyntaxID{IfUUID: LsacapSyntaxUUID, IfVersionMajor: 1, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "capr"
)

Functions

func LsacapServerHandle

func LsacapServerHandle(ctx context.Context, o LsacapServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)

func NewLsacapServerHandle

func NewLsacapServerHandle(o LsacapServer) dcerpc.ServerHandle

func RegisterLsacapServer

func RegisterLsacapServer(conn dcerpc.Conn, o LsacapServer, opts ...dcerpc.Option)

Types

type GetAvailableCapIDsRequest

type GetAvailableCapIDsRequest struct {
}

GetAvailableCapIDsRequest structure represents the LsarGetAvailableCAPIDs operation request

func (*GetAvailableCapIDsRequest) MarshalNDR

func (o *GetAvailableCapIDsRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetAvailableCapIDsRequest) UnmarshalNDR

func (o *GetAvailableCapIDsRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type GetAvailableCapIDsResponse

type GetAvailableCapIDsResponse struct {
	// WrappedCAPIDs: A pointer to LSAPR_WRAPPED_CAPID_SET, as defined in section 2.2.1.1.
	WrappedCapIDs *capr.WrappedCapidSet `idl:"name:WrappedCAPIDs" json:"wrapped_cap_ids"`
	// Return: The LsarGetAvailableCAPIDs return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetAvailableCapIDsResponse structure represents the LsarGetAvailableCAPIDs operation response

func (*GetAvailableCapIDsResponse) MarshalNDR

func (o *GetAvailableCapIDsResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetAvailableCapIDsResponse) UnmarshalNDR

func (o *GetAvailableCapIDsResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type LsacapClient

type LsacapClient interface {

	// This method returns a list of the CAPIDs of all the central access policies available
	// on the specified remote machine. These identifiers are equivalent to the SIDs of
	// the central access policy objects as they are stored in Active Directory.
	//
	// Return Values:
	//
	// If the method succeeds, the function MUST return 0x00000000 (ERROR_SUCCESS).
	GetAvailableCapIDs(context.Context, *GetAvailableCapIDsRequest, ...dcerpc.CallOption) (*GetAvailableCapIDsResponse, error)

	// AlterContext alters the client context.
	AlterContext(context.Context, ...dcerpc.Option) error
}

lsacap interface.

func NewLsacapClient

func NewLsacapClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (LsacapClient, error)

type LsacapServer

type LsacapServer interface {

	// This method returns a list of the CAPIDs of all the central access policies available
	// on the specified remote machine. These identifiers are equivalent to the SIDs of
	// the central access policy objects as they are stored in Active Directory.
	//
	// Return Values:
	//
	// If the method succeeds, the function MUST return 0x00000000 (ERROR_SUCCESS).
	GetAvailableCapIDs(context.Context, *GetAvailableCapIDsRequest) (*GetAvailableCapIDsResponse, error)
}

lsacap server interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL