diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/auth/ldap/config.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/auth/ldap/config.rb b/lib/gitlab/auth/ldap/config.rb index 709cd0d787a..b8874e18a0b 100644 --- a/lib/gitlab/auth/ldap/config.rb +++ b/lib/gitlab/auth/ldap/config.rb @@ -178,7 +178,7 @@ module Gitlab def default_attributes { - 'username' => %w(uid sAMAccountName userid), + 'username' => %W(#{uid} uid sAMAccountName userid).uniq, 'email' => %w(mail email userPrincipalName), 'name' => 'cn', 'first_name' => 'givenName', |