Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tasks/gitlab/check.rake8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake
index 5f6856a63e3..1cea4ff806c 100644
--- a/lib/tasks/gitlab/check.rake
+++ b/lib/tasks/gitlab/check.rake
@@ -682,12 +682,14 @@ namespace :gitlab do
namespace :ldap do
task check: :environment do
- next unless ldap_config.enabled
-
warn_user_is_not_gitlab
start_checking "LDAP"
- print_users
+ if ldap_config.enabled
+ print_users
+ else
+ puts 'LDAP is disabled in config/gitlab.yml'
+ end
finished_checking "LDAP"
end