Class: RubySMB::Dcerpc::Netlogon::NetlogonSecureChannelType

Inherits:
RubySMB::Dcerpc::Ndr::NdrEnum show all
Defined in:
lib/ruby_smb/dcerpc/netlogon.rb

Overview

see: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nrpc/4d1235e3-2c96-4e9f-a147-3cb338a0d09f

Constant Summary collapse

ALL =

enum example from dmendel/bindata#38 https://github.com/dmendel/bindata/issues/38#issuecomment-46397163

{
  0 => :NullSecureChannel,
  1 => :MsvApSecureChannel,
  2 => :WorkstationSecureChannel,
  3 => :TrustedDnsDomainSecureChannel,
  4 => :TrustedDomainSecureChannel,
  5 => :UasServerSecureChannel,
  6 => :ServerSecureChannel,
  7 => :CdcServerSecureChannel
}

Instance Method Summary collapse

Instance Method Details

#as_enumObject



47
48
49
# File 'lib/ruby_smb/dcerpc/netlogon.rb', line 47

def as_enum
  ALL[value]
end

#assign(val) ⇒ Object



51
52
53
54
55
56
57
58
# File 'lib/ruby_smb/dcerpc/netlogon.rb', line 51

def assign(val)
  if val.is_a? Symbol
    val = ALL.key(val)
    raise ArgumentError, 'invalid value name' if val.nil?
  end

  super
end