class LdapDisambiguate::Base
This class allows you to use LDAP to disambiguate a text name
Private Class Methods
ldap_attributes_for_id(id)
click to toggle source
# File lib/ldap_disambiguate/base.rb, line 10 def ldap_attributes_for_id(id) users = LdapUser.directory_attributes(id, ldap_attrs) users.count < 1 ? nil : users end
ldap_attrs()
click to toggle source
# File lib/ldap_disambiguate/base.rb, line 15 def ldap_attrs %i[uid givenname sn mail eduPersonPrimaryAffiliation displayname] end