class UC3Ldap::LdapUser
ldap user record
Attributes
Public Class Methods
Source
# File app/lib/client/ldap/ldap.rb, line 478 def initialize(entry, uid = '') if entry.nil? @uid = uid @email = '' @displayname = '' @arkid = '' @lastaccess = '' super(false) else @uid = entry['uid'].first @email = entry['mail'] @displayname = entry['displayname'].first @arkid = entry['arkid'] begin @lastaccess = entry['ds-pwp-last-login-time'] rescue StandardError @lastaccess = 'na' end super(true) end end
              Calls superclass method
              
        UC3Ldap::LdapLinkedRecord::new
            Public Instance Methods
Source
# File app/lib/client/ldap/ldap.rb, line 512 def detail_records LdapUserDetailed.load(self, @roles) end
Source
# File app/lib/client/ldap/ldap.rb, line 500 def displayname "#{@displayname&.gsub(',', '')} (#{uid})" end