Class: Gitlab::Auth::Ldap::AuthHash

Inherits:
OAuth::AuthHash show all
Defined in:
lib/gitlab/auth/ldap/auth_hash.rb

Instance Attribute Summary

Attributes inherited from OAuth::AuthHash

#auth_hash

Instance Method Summary collapse

Methods inherited from OAuth::AuthHash

#email, #has_attribute?, #initialize, #location, #name, #password, #provider

Constructor Details

This class inherits a constructor from Gitlab::Auth::OAuth::AuthHash

Instance Method Details

#uidObject



9
10
11
# File 'lib/gitlab/auth/ldap/auth_hash.rb', line 9

def uid
  @uid ||= Gitlab::Auth::Ldap::Person.normalize_dn(super)
end

#usernameObject



13
14
15
16
17
# File 'lib/gitlab/auth/ldap/auth_hash.rb', line 13

def username
  super.tap do |username|
    username.downcase! if ldap_config.lowercase_usernames
  end
end