Class/Module Index [+]

Quicksearch

ActiveSambaLdap::AccountEntry::ClassMethods

Public Instance Methods

find_by_uid_number(number) click to toggle source
# File lib/active_samba_ldap/account_entry.rb, line 24
def find_by_uid_number(number)
  options = {:objects => true}
  attribute = "uidNumber"
  value = Integer(number)
  find(:first, :filter => "(#{attribute}=#{value})")
end
ldap_mapping(options={}) click to toggle source
# File lib/active_samba_ldap/account_entry.rb, line 17
def ldap_mapping(options={})
  options = default_options.merge(options)
  super(extract_ldap_mapping_options(options))
  belongs_to :primary_group, primary_group_options(options)
  belongs_to :groups, groups_options(options)
end
unix_object_classes() click to toggle source
# File lib/active_samba_ldap/account_entry.rb, line 31
def unix_object_classes
  if samba4?
    samba_object_classes
  else
    ["inetOrgPerson", "posixAccount"]
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.