rfri

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Syntax UUID
	RfriSyntaxUUID = &uuid.UUID{TimeLow: 0x1544f5e0, TimeMid: 0x613c, TimeHiAndVersion: 0x11d1, ClockSeqHiAndReserved: 0x93, ClockSeqLow: 0xdf, Node: [6]uint8{0x0, 0xc0, 0x4f, 0xd7, 0xbd, 0x9}}
	// Syntax ID
	RfriSyntaxV1_0 = &dcerpc.SyntaxID{IfUUID: RfriSyntaxUUID, IfVersionMajor: 1, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "oxabref"
)

Functions

func NewRfriServerHandle

func NewRfriServerHandle(o RfriServer) dcerpc.ServerHandle

func RegisterRfriServer

func RegisterRfriServer(conn dcerpc.Conn, o RfriServer, opts ...dcerpc.Option)

func RfriServerHandle

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

Types

type GetFQDNFromServerDNRequest

type GetFQDNFromServerDNRequest struct {
	// ulFlags: An unsigned long value, containing a set of bit flags. Unused; SHOULD be
	// set to zero. Other values MUST be ignored by the server.
	Flags uint32 `idl:"name:ulFlags" json:"flags"`
	// cbMailboxServerDN: An unsigned long value containing the number of bytes in the value
	// of the szMailboxServerDN parameter, including terminating NULL character. The value
	// is at least 10, at most 1024.
	MailboxServerDNLength uint32 `idl:"name:cbMailboxServerDN" json:"mailbox_server_dn_length"`
	// szMailboxServerDN: A 5 or 6-element DN identifying a mailbox server, which MUST match
	// the server's implementation of server identities. It follows this format:
	//
	// The CN=" instance-name " element is optional.<3>
	//
	// Note that the client MAY receive a DN identifying a specific database on this server,
	// from sources listed in section 1.6. This DN follows this format:
	//
	// # Or
	//
	// If this is the DN available, it is the client's responsibility to remove the final
	// element before passing the DN to the RfrGetFQDNFromServerDN method.
	MailboxServerDN string `idl:"name:szMailboxServerDN;size_is:(cbMailboxServerDN);string" json:"mailbox_server_dn"`
}

GetFQDNFromServerDNRequest structure represents the RfrGetFQDNFromServerDN operation request

func (*GetFQDNFromServerDNRequest) MarshalNDR

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

func (*GetFQDNFromServerDNRequest) UnmarshalNDR

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

type GetFQDNFromServerDNResponse

type GetFQDNFromServerDNResponse struct {
	// ppszServerFQDN: A string. If the server does not return an error, the ppszServerFQDN
	// parameter contains the FQDN of the mailbox server identified by the szMailboxServerDN
	// parameter.
	ServerFQDN string `idl:"name:ppszServerFQDN;string;pointer:ref" json:"server_fqdn"`
	// Return: The RfrGetFQDNFromServerDN return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetFQDNFromServerDNResponse structure represents the RfrGetFQDNFromServerDN operation response

func (*GetFQDNFromServerDNResponse) MarshalNDR

func (*GetFQDNFromServerDNResponse) UnmarshalNDR

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

type GetNewDSARequest

type GetNewDSARequest struct {
	// ulFlags: An unsigned long value, containing a set of bit flags. Unused; SHOULD be
	// set to zero. Other values MUST be ignored by the server.
	Flags uint32 `idl:"name:ulFlags" json:"flags"`
	// pUserDN: Optional, a DN indicating the mailbox owned by the client user. The client
	// SHOULD pass this to the server. If supplied, the server SHOULD use that DN to affect
	// which NSPI server is returned to the caller.
	UserDN string `idl:"name:pUserDN;string" json:"user_dn"`
	// ppszServer: A string. If the server does not return an error, ppszServer contains
	// the FQDN of an NSPI server or a server array. On failure, the value is undefined.
	Server string `idl:"name:ppszServer;string;pointer:unique" json:"server"`
}

GetNewDSARequest structure represents the RfrGetNewDSA operation request

func (*GetNewDSARequest) MarshalNDR

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

func (*GetNewDSARequest) UnmarshalNDR

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

type GetNewDSAResponse

type GetNewDSAResponse struct {
	// ppszServer: A string. If the server does not return an error, ppszServer contains
	// the FQDN of an NSPI server or a server array. On failure, the value is undefined.
	Server string `idl:"name:ppszServer;string;pointer:unique" json:"server"`
	// Return: The RfrGetNewDSA return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetNewDSAResponse structure represents the RfrGetNewDSA operation response

func (*GetNewDSAResponse) MarshalNDR

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

func (*GetNewDSAResponse) UnmarshalNDR

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

type RfriClient

type RfriClient interface {

	// The RfrGetNewDSA method returns the name of an NSPI server or a server array.
	//
	// Return Values: The server returns 0 for a successful execution. An error results
	// in an HRESULT or other nonzero error code.
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol as specified in [MS-RPCE].
	GetNewDSA(context.Context, *GetNewDSARequest, ...dcerpc.CallOption) (*GetNewDSAResponse, error)

	// The RfrGetFQDNFromServerDN method returns the Domain Name System (DNS) FQDN of the
	// server corresponding to the passed DN.
	//
	// Return Values: The server returns 0 for a successful execution. An error results
	// in an HRESULT or other nonzero error code.
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol as specified in [MS-RPCE].
	GetFQDNFromServerDN(context.Context, *GetFQDNFromServerDNRequest, ...dcerpc.CallOption) (*GetFQDNFromServerDNResponse, error)

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

rfri interface.

func NewRfriClient

func NewRfriClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (RfriClient, error)

type RfriServer

type RfriServer interface {

	// The RfrGetNewDSA method returns the name of an NSPI server or a server array.
	//
	// Return Values: The server returns 0 for a successful execution. An error results
	// in an HRESULT or other nonzero error code.
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol as specified in [MS-RPCE].
	GetNewDSA(context.Context, *GetNewDSARequest) (*GetNewDSAResponse, error)

	// The RfrGetFQDNFromServerDN method returns the Domain Name System (DNS) FQDN of the
	// server corresponding to the passed DN.
	//
	// Return Values: The server returns 0 for a successful execution. An error results
	// in an HRESULT or other nonzero error code.
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol as specified in [MS-RPCE].
	GetFQDNFromServerDN(context.Context, *GetFQDNFromServerDNRequest) (*GetFQDNFromServerDNResponse, error)
}

rfri server interface.

Jump to

Keyboard shortcuts

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