rpcinterface_3919286ab10c11d09ba800c04fd92ef5_0_0
import "github.com/TheManticoreProject/Manticore/network/dcerpc/interfaces/3919286a-b10c-11d0-9ba8-00c04fd92ef5/0.0"
Package rpcinterface_3919286ab10c11d09ba800c04fd92ef5_0_0 is the descriptor for the dssetup RPC interface, abstract syntax 3919286a-b10c-11d0-9ba8-00c04fd92ef5 version 0.0 ([MS-DSSP]).
Generated by tools/idlgen (descriptor phase) from the IDL, then reviewed: the PipeName, the status-code table, and doc comments are not derivable from the IDL and must be confirmed by hand (see the TODO markers).
Index
Constants
Status codes returned by DsRolerGetPrimaryDomainInformation. The method returns a Win32 error code (an [MS-ERREF] 2.2 system error), not an NTSTATUS: 0 on success, otherwise a nonzero failure. Only the codes the spec calls out are enumerated; any other value is rendered as hex by StatusString.
const (
StatusSuccess uint32 = 0x00000000 // ERROR_SUCCESS
ErrorAccessDenied uint32 = 0x00000005 // ERROR_ACCESS_DENIED
ErrorNotEnoughMemory uint32 = 0x00000008 // ERROR_NOT_ENOUGH_MEMORY
ErrorOutOfMemory uint32 = 0x0000000E // ERROR_OUTOFMEMORY
ErrorInvalidParameter uint32 = 0x00000057 // ERROR_INVALID_PARAMETER
ErrorInvalidDomainRole uint32 = 0x0000054A // ERROR_INVALID_DOMAIN_ROLE
ErrorNoSuchDomain uint32 = 0x0000054B // ERROR_NO_SUCH_DOMAIN
ErrorInvalidLevel uint32 = 0x0000007C // ERROR_INVALID_LEVEL
)
Opnums for the on-the-wire methods. Opnums 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 are “not used on the wire” and are omitted.
const (
OpnumDsRolerGetPrimaryDomainInformation uint16 = 0
)
PipeName is the IPC$-relative named pipe for the dssetup interface. dssetup shares the well-known \PIPE\lsarpc endpoint ([MS-DSSP] 2.1 Transport); the interface is identified by its UUID, not the pipe.
const PipeName = `\lsarpc`
Variables
NameToOpnum is the reverse of OpnumToName, built at init so the two never drift.
var NameToOpnum = func() map[string]uint16 {
m := make(map[string]uint16, len(OpnumToName))
for op, name := range OpnumToName {
m[name] = op
}
return m
}()
OpnumToName maps each on-the-wire opnum to its method name; the single source of truth.
var OpnumToName = map[uint16]string{
OpnumDsRolerGetPrimaryDomainInformation: "DsRolerGetPrimaryDomainInformation",
}
func StatusString
func StatusString(status uint32) string
StatusString returns a mnemonic for the documented status codes, otherwise the hex value.
func SyntaxID
func SyntaxID() syntax.SyntaxID
SyntaxID returns the dssetup abstract syntax identifier: 3919286a-b10c-11d0-9ba8-00c04fd92ef5, version 0.0.