Commit 2f4d0a3008d550f19a1dd3b354853a7295994308

Authored by Jacob Vosmaer
1 parent afd29993

Rephrase LDAP check script output

The previous phrasing lead some people to believe that there is a limit
on the number of LDAP users that can sign in to a GitLab instance. That
is not the case; the limit in the check script only applies to the
diagnostic information result set, so that running `rake gitlab:check`
does not output thousands of LDAP users.
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/tasks/gitlab/check.rake
@@ -698,7 +698,7 @@ namespace :gitlab do @@ -698,7 +698,7 @@ namespace :gitlab do
698 end 698 end
699 699
700 def print_users(limit) 700 def print_users(limit)
701 - puts "LDAP users with access to your GitLab server (limit: #{limit}):" 701 + puts "LDAP users with access to your GitLab server (only showing the first #{limit} results)"
702 ldap.search(attributes: attributes, filter: filter, size: limit, return_result: false) do |entry| 702 ldap.search(attributes: attributes, filter: filter, size: limit, return_result: false) do |entry|
703 puts "DN: #{entry.dn}\t#{ldap_config.uid}: #{entry[ldap_config.uid]}" 703 puts "DN: #{entry.dn}\t#{ldap_config.uid}: #{entry[ldap_config.uid]}"
704 end 704 end