OSDN Git Service

Explain that `limit` only applies to the check
authorJacob Vosmaer <contact@jacobvosmaer.nl>
Thu, 16 Jan 2014 17:40:45 +0000 (18:40 +0100)
committerJacob Vosmaer <contact@jacobvosmaer.nl>
Thu, 16 Jan 2014 17:40:45 +0000 (18:40 +0100)
config/gitlab.yml.example
lib/tasks/gitlab/check.rake

index 71d46d4..71cbd07 100644 (file)
@@ -116,8 +116,8 @@ production: &base
   # ==========================
 
   ## LDAP settings
-  # You can inspect the first 100 LDAP users with login access by running:
-  #   bundle exec rake gitlab:ldap:check[100] RAILS_ENV=production
+  # You can inspect a sample of the LDAP users with login access by running:
+  #   bundle exec rake gitlab:ldap:check RAILS_ENV=production
   ldap:
     enabled: false
     host: '_your_ldap_server'
index 20d5f03..461e70e 100644 (file)
@@ -682,6 +682,8 @@ namespace :gitlab do
 
   namespace :ldap do
     task :check, [:limit] => :environment do |t, args|
+      # Only show up to 100 results because LDAP directories can be very big.
+      # This setting only affects the `rake gitlab:check` script.
       args.with_defaults(limit: 100)
       warn_user_is_not_gitlab
       start_checking "LDAP"