iwbemlevel1login

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IWbemLevel1Login interface identifier f309ad18-d86a-11d0-a075-00c04fb68820
	Level1LoginIID = &dcom.IID{Data1: 0xf309ad18, Data2: 0xd86a, Data3: 0x11d0, Data4: []byte{0xa0, 0x75, 0x00, 0xc0, 0x4f, 0xb6, 0x88, 0x20}}
	// Syntax UUID
	Level1LoginSyntaxUUID = &uuid.UUID{TimeLow: 0xf309ad18, TimeMid: 0xd86a, TimeHiAndVersion: 0x11d0, ClockSeqHiAndReserved: 0xa0, ClockSeqLow: 0x75, Node: [6]uint8{0x0, 0xc0, 0x4f, 0xb6, 0x88, 0x20}}
	// Syntax ID
	Level1LoginSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: Level1LoginSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/wmi"
)

Functions

func Level1LoginServerHandle

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

func NewLevel1LoginServerHandle

func NewLevel1LoginServerHandle(o Level1LoginServer) dcerpc.ServerHandle

func RegisterLevel1LoginServer

func RegisterLevel1LoginServer(conn dcerpc.Conn, o Level1LoginServer, opts ...dcerpc.Option)

Types

type EstablishPositionRequest

type EstablishPositionRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
}

EstablishPositionRequest structure represents the EstablishPosition operation request

func (*EstablishPositionRequest) MarshalNDR

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

func (*EstablishPositionRequest) UnmarshalNDR

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

type EstablishPositionResponse

type EstablishPositionResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// LocaleVersion: The server MUST set the value of LocaleVersion based on the server
	// behavior when IWbemLevel1Login::NTLMLogin is passed an unrecognized locale name in
	// the wszPreferredLocale parameter:
	//
	// * If the server ignores an unrecognized locale name in the Locale Name Format, as
	// specified in section 2.2.29 ( 259edd31-d6eb-4bc9-a2c4-2891b78bb51d ) , passed to
	// IWbemLevel1Login::NTLMLogin while all other parameters are valid, and completes the
	// execution of the IWbemLevel1Login::NTLMLogin method, the server MUST set the LocaleVersion
	// parameter to 1.
	//
	// * If the server returns an error for an unrecognized locale name in Locale Name Format,
	// as specified in section 2.2.29, passed to IWbemLevel1Login::NTLMLogin, while all
	// other parameters are valid, the server MUST set the LocaleVersion parameter to 0.
	LocaleVersion uint32 `idl:"name:LocaleVersion" json:"locale_version"`
	// Return: The EstablishPosition return value.
	Return int32 `idl:"name:Return" json:"return"`
}

EstablishPositionResponse structure represents the EstablishPosition operation response

func (*EstablishPositionResponse) MarshalNDR

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

func (*EstablishPositionResponse) UnmarshalNDR

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

type Level1LoginClient

type Level1LoginClient interface {

	// IUnknown retrieval method.
	Unknown() iunknown.UnknownClient

	// The IWbemLevel1Login::EstablishPosition method does not perform any action. The return
	// value and output parameter are used in locale negotiation as specified in section
	// 3.2.3.
	//
	// Return Values: The server MUST return one of the following values, based on server
	// behavior for the wszPreferredLocale parameter in IWbemLevel1Login::NTLMLogin.
	//
	//	+----------------------+----------------------------------------------------------------------------------+
	//	|        RETURN        |                                                                                  |
	//	|      VALUE/CODE      |                                   DESCRIPTION                                    |
	//	|                      |                                                                                  |
	//	+----------------------+----------------------------------------------------------------------------------+
	//	+----------------------+----------------------------------------------------------------------------------+
	//	| 0x00 WBEM_S_NO_ERROR | The connection was established and no error occurred.<27>                        |
	//	+----------------------+----------------------------------------------------------------------------------+
	//	| 0x80004001 E_NOTIMPL | The attempted operation is not implemented. The value of this element is as      |
	//	|                      | specified in [MS-ERREF] section 2.1.<28>                                         |
	//	+----------------------+----------------------------------------------------------------------------------+
	EstablishPosition(context.Context, *EstablishPositionRequest, ...dcerpc.CallOption) (*EstablishPositionResponse, error)

	// This method does not perform any action.
	RequestChallenge(context.Context, *RequestChallengeRequest, ...dcerpc.CallOption) (*RequestChallengeResponse, error)

	// This method does not perform any action.
	WBEMLogin(context.Context, *WBEMLoginRequest, ...dcerpc.CallOption) (*WBEMLoginResponse, error)

	// The IWbemLevel1Login::NTLMLogin method MUST connect a user to the management services
	// interface in a specified namespace.
	//
	// Return Values: This method MUST return an HRESULT value that MUST indicate the status
	// of the method call. The server MUST return WBEM_S_NO_ERROR, as specified in section
	// 2.2.11, to indicate the successful completion of the method.
	NTLMLogin(context.Context, *NTLMLoginRequest, ...dcerpc.CallOption) (*NTLMLoginResponse, error)

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

	// IPID sets the object interface identifier.
	IPID(context.Context, *dcom.IPID) Level1LoginClient
}

IWbemLevel1Login interface.

func NewLevel1LoginClient

func NewLevel1LoginClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (Level1LoginClient, error)

type Level1LoginServer

type Level1LoginServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The IWbemLevel1Login::EstablishPosition method does not perform any action. The return
	// value and output parameter are used in locale negotiation as specified in section
	// 3.2.3.
	//
	// Return Values: The server MUST return one of the following values, based on server
	// behavior for the wszPreferredLocale parameter in IWbemLevel1Login::NTLMLogin.
	//
	//	+----------------------+----------------------------------------------------------------------------------+
	//	|        RETURN        |                                                                                  |
	//	|      VALUE/CODE      |                                   DESCRIPTION                                    |
	//	|                      |                                                                                  |
	//	+----------------------+----------------------------------------------------------------------------------+
	//	+----------------------+----------------------------------------------------------------------------------+
	//	| 0x00 WBEM_S_NO_ERROR | The connection was established and no error occurred.<27>                        |
	//	+----------------------+----------------------------------------------------------------------------------+
	//	| 0x80004001 E_NOTIMPL | The attempted operation is not implemented. The value of this element is as      |
	//	|                      | specified in [MS-ERREF] section 2.1.<28>                                         |
	//	+----------------------+----------------------------------------------------------------------------------+
	EstablishPosition(context.Context, *EstablishPositionRequest) (*EstablishPositionResponse, error)

	// This method does not perform any action.
	RequestChallenge(context.Context, *RequestChallengeRequest) (*RequestChallengeResponse, error)

	// This method does not perform any action.
	WBEMLogin(context.Context, *WBEMLoginRequest) (*WBEMLoginResponse, error)

	// The IWbemLevel1Login::NTLMLogin method MUST connect a user to the management services
	// interface in a specified namespace.
	//
	// Return Values: This method MUST return an HRESULT value that MUST indicate the status
	// of the method call. The server MUST return WBEM_S_NO_ERROR, as specified in section
	// 2.2.11, to indicate the successful completion of the method.
	NTLMLogin(context.Context, *NTLMLoginRequest) (*NTLMLoginResponse, error)
}

IWbemLevel1Login server interface.

type NTLMLoginRequest

type NTLMLoginRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// wszNetworkResource: The string MUST represent the namespace on the server to which
	// the returned IWbemServices object is associated. This parameter MUST NOT be NULL
	// and MUST match the namespace syntax as specified in section 2.2.2.
	NetworkResource string `idl:"name:wszNetworkResource;string;pointer:unique" json:"network_resource"`
	// wszPreferredLocale: MUST be a pointer to a string that MUST specify the locale values
	// in the preferred order, separated by a comma. If the client does not supply it, the
	// server creates a default list which is implementation-specific.<29> Each locale format
	// SHOULD conform to the WMI locale format, as specified in WMI Locale Formats (section
	// 2.2.29). Any subsequent calls that request CIM localizable information (WBEM_FLAG_USE_AMENDED_QUALIFIERS)
	// SHOULD return the localized information in the order of preference if the information
	// is available in the LCID.<30> The server MUST save this information in ClientPreferredLocales.
	PreferredLocale string `idl:"name:wszPreferredLocale;string;pointer:unique" json:"preferred_locale"`
	// lFlags: MUST be 0. The server SHOULD consider any other value as not valid and return
	// WBEM_E_INVALID_PARAMETER; otherwise, the server behavior is implementation-specific.<31>
	Flags int32 `idl:"name:lFlags" json:"flags"`
	// pCtx: MUST be a pointer to an IWbemContext interface, which MUST contain additional
	// information sent by the client. If pCtx is NULL, the parameter MUST be ignored.
	Context *wmi.Context `idl:"name:pCtx" json:"context"`
}

NTLMLoginRequest structure represents the NTLMLogin operation request

func (*NTLMLoginRequest) MarshalNDR

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

func (*NTLMLoginRequest) UnmarshalNDR

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

type NTLMLoginResponse

type NTLMLoginResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppNamespace: If the call succeeds, ppNamespace MUST return a pointer to an IWbemServices
	// interface pointer. This parameter MUST be set to NULL when an error occurs.
	Namespace *wmi.Services `idl:"name:ppNamespace" json:"namespace"`
	// Return: The NTLMLogin return value.
	Return int32 `idl:"name:Return" json:"return"`
}

NTLMLoginResponse structure represents the NTLMLogin operation response

func (*NTLMLoginResponse) MarshalNDR

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

func (*NTLMLoginResponse) UnmarshalNDR

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

type RequestChallengeRequest

type RequestChallengeRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
}

RequestChallengeRequest structure represents the RequestChallenge operation request

func (*RequestChallengeRequest) MarshalNDR

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

func (*RequestChallengeRequest) UnmarshalNDR

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

type RequestChallengeResponse

type RequestChallengeResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// Return: The RequestChallenge return value.
	Return int32 `idl:"name:Return" json:"return"`
}

RequestChallengeResponse structure represents the RequestChallenge operation response

func (*RequestChallengeResponse) MarshalNDR

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

func (*RequestChallengeResponse) UnmarshalNDR

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

type WBEMLoginRequest

type WBEMLoginRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
}

WBEMLoginRequest structure represents the WBEMLogin operation request

func (*WBEMLoginRequest) MarshalNDR

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

func (*WBEMLoginRequest) UnmarshalNDR

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

type WBEMLoginResponse

type WBEMLoginResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// Return: The WBEMLogin return value.
	Return int32 `idl:"name:Return" json:"return"`
}

WBEMLoginResponse structure represents the WBEMLogin operation response

func (*WBEMLoginResponse) MarshalNDR

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

func (*WBEMLoginResponse) UnmarshalNDR

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

Jump to

Keyboard shortcuts

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