Skip to content
Snippets Groups Projects
Commit 08714d2b authored by Drew Blessing's avatar Drew Blessing
Browse files

Move LDAP user attributes to a method

parent 1038ef54
No related branches found
No related tags found
No related merge requests found
Loading
@@ -70,7 +70,7 @@ module Gitlab
Loading
@@ -70,7 +70,7 @@ module Gitlab
private private
   
def user_options(field, value, limit) def user_options(field, value, limit)
options = { attributes: %W(#{config.uid} cn mail dn) } options = { attributes: user_attributes }
options[:size] = limit if limit options[:size] = limit if limit
   
if field.to_sym == :dn if field.to_sym == :dn
Loading
@@ -98,6 +98,10 @@ module Gitlab
Loading
@@ -98,6 +98,10 @@ module Gitlab
filter filter
end end
end end
def user_attributes
%W(#{config.uid} cn mail dn)
end
end end
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment