Move LDAP user attributes to a method
This commit is contained in:
parent
1038ef54d0
commit
08714d2bcd
1 changed files with 5 additions and 1 deletions
|
@ -70,7 +70,7 @@ module Gitlab
|
|||
private
|
||||
|
||||
def user_options(field, value, limit)
|
||||
options = { attributes: %W(#{config.uid} cn mail dn) }
|
||||
options = { attributes: user_attributes }
|
||||
options[:size] = limit if limit
|
||||
|
||||
if field.to_sym == :dn
|
||||
|
@ -98,6 +98,10 @@ module Gitlab
|
|||
filter
|
||||
end
|
||||
end
|
||||
|
||||
def user_attributes
|
||||
%W(#{config.uid} cn mail dn)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue