Module ActiveLdap::Attributes
In: lib/active_ldap/attributes.rb
Error DeleteError AdapterNotSpecified OperationNotPermitted LdapError RequiredAttributeMissed AttributeAssignmentError RequiredObjectClassMissed DistinguishedNameNotSetError StrongAuthenticationRequired ConnectionError SaveError EntryNotFound AuthenticationError EntryNotSaved UnknownAttribute ConnectionNotEstablished TimeoutError ConfigurationError AdapterNotFound DistinguishedNameInvalid ObjectClassError EntryInvalid EntryAlreadyExist Reloadable::Deprecated Base Reloadable::Subclasses Enumerable Collection StandardError HasMany HasManyWrap BelongsToMany Proxy BelongsTo Base\n[lib/active_ldap/adapter/base.rb\nlib/active_ldap/adapter/ldap.rb\nlib/active_ldap/adapter/net_ldap.rb] Ldap NetLdap ActiveRecord::Callbacks ActiveRecord::Validations Schema DistinguishedName lib/active_ldap/base.rb lib/active_ldap/schema.rb lib/active_ldap/distinguished_name.rb lib/active_ldap/ldap_error.rb ClassMethods Associations lib/active_ldap/association/has_many_wrap.rb lib/active_ldap/association/has_many.rb lib/active_ldap/association/proxy.rb lib/active_ldap/association/collection.rb lib/active_ldap/association/belongs_to_many.rb lib/active_ldap/association/belongs_to.rb Association ClassMethods Configuration Command lib/active_ldap/adapter/net_ldap.rb lib/active_ldap/adapter/ldap.rb lib/active_ldap/adapter/base.rb Adapter ClassMethods Attributes ClassMethods ObjectClass Callbacks ClassMethods Connection Validations Salt UserPassword ActiveLdap dot/m_26_0.png

Methods

Classes and Modules

Module ActiveLdap::Attributes::ClassMethods

Public Class methods

[Source]

   # File lib/active_ldap/attributes.rb, line 3
3:     def self.included(base)
4:       base.extend(ClassMethods)
5:     end

Private Instance methods

[Source]

     # File lib/active_ldap/attributes.rb, line 195
195:     def attributes_protected_by_default
196:       [dn_attribute, 'objectClass']
197:     end

[Source]

     # File lib/active_ldap/attributes.rb, line 199
199:     def normalize_attribute_name(name)
200:       self.class.normalize_attribute_name(name)
201:     end

[Source]

     # File lib/active_ldap/attributes.rb, line 181
181:     def remove_attributes_protected_from_mass_assignment(targets)
182:       needless_attributes = {}
183:       (attributes_protected_by_default +
184:        (self.class.protected_attributes || [])).each do |name|
185:         needless_attributes[to_real_attribute_name(name)] = true
186:       end
187: 
188:       targets.collect do |key, value|
189:         [to_real_attribute_name(key), value]
190:       end.reject do |key, value|
191:         key.nil? or needless_attributes[key]
192:       end
193:     end

[Validate]