class ActiveLdap::Schema::Attribute

def collect_info

def collect_info
  @description = attribute("DESC")[0]
  @super_attribute = attribute("SUP")[0]
  if @super_attribute
    @super_attribute = @schema.attribute(@super_attribute)
    @super_attribute = nil if @super_attribute.id.nil?
  end
  @read_only = attribute('NO-USER-MODIFICATION')[0] == 'TRUE'
  @single_value = attribute('SINGLE-VALUE')[0] == 'TRUE'
  @syntax = attribute("SYNTAX")[0]
  @syntax = @schema.ldap_syntax(@syntax) if @syntax
  if @syntax
    @binary_required = @syntax.binary_transfer_required?
    @binary = @syntax.binary?
    @derived_syntax = @syntax
  else
    @binary_required = false
    @binary = false
    @derived_syntax = nil
    @derived_syntax = @super_attribute.syntax if @super_attribute
  end
  @directory_operation = attribute("USAGE").include?("directoryOperation")
end