module ActiveLdap::Validations::ClassMethods

def attribute_method?(attribute)

def attribute_method?(attribute)
  normalized_attribute = entry_attribute.normalize(attribute)
  normalized_attribute and normalized_attribute != "objectClass"
end

def entry_attribute

def entry_attribute
  @entry_attribute ||=
    connection.entry_attribute(classes.collect(&:name))
end