Class LDAP::Schema2
In: lib/activeldap/schema2.rb
Parent: Schema

Methods

Public Instance methods

attr

This is just like LDAP::Schema#attr except that it allows look up in any of the given keys. e.g.

 attr('attributeTypes', 'cn', 'DESC')
 attr('ldapSyntaxes', '1.3.6.1.4.1.1466.115.121.1.5', 'DESC')

attribute_aliases

Returns all names from the LDAP schema for the attribute given.

binary?

Returns true if the given attribute’s syntax is X-NOT-HUMAN-READABLE or X-BINARY-TRANSFER-REQUIRED

binary_required?

Returns true if the value MUST be transferred in binary

class_attributes

Returns an Array of all the valid attributes (but not with full aliases) for the given objectClass

read_only?

Returns true if an attribute is read-only NO-USER-MODIFICATION

single_value?

Returns true if an attribute can only have one value defined SINGLE-VALUE

[Validate]