Method: NicInfo::Ns#get_cn

Defined in:
lib/nicinfo/ns.rb

#get_cnObject



92
93
94
95
96
97
98
99
100
# File 'lib/nicinfo/ns.rb', line 92

def get_cn
  handle = NicInfo::get_handle @objectclass
  handle = NicInfo::get_ldhName @objectclass if !handle
  handle = "(unidentifiable nameserver #{object_id})" if !handle
  if (name = NicInfo::get_ldhName( @objectclass ) ) != nil
    return "#{name} ( #{handle} )"
  end
  return handle
end