Documentation ¶
Index ¶
- Variables
- func Level1LoginServerHandle(ctx context.Context, o Level1LoginServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func NewLevel1LoginServerHandle(o Level1LoginServer) dcerpc.ServerHandle
- func RegisterLevel1LoginServer(conn dcerpc.Conn, o Level1LoginServer, opts ...dcerpc.Option)
- type EstablishPositionRequest
- type EstablishPositionResponse
- type Level1LoginClient
- type Level1LoginServer
- type NTLMLoginRequest
- type NTLMLoginResponse
- type RequestChallengeRequest
- type RequestChallengeResponse
- type WBEMLoginRequest
- type WBEMLoginResponse
Constants ¶
This section is empty.
Variables ¶
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} )
var (
// import guard
GoPackage = "dcom/wmi"
)
Functions ¶
func Level1LoginServerHandle ¶
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 (*EstablishPositionRequest) UnmarshalNDR ¶
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 (*EstablishPositionResponse) UnmarshalNDR ¶
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 ¶
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 (*NTLMLoginRequest) UnmarshalNDR ¶
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 (*NTLMLoginResponse) UnmarshalNDR ¶
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 (*RequestChallengeRequest) UnmarshalNDR ¶
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 (*RequestChallengeResponse) UnmarshalNDR ¶
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 (*WBEMLoginRequest) UnmarshalNDR ¶
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