Commit 376cfc6ac68da97af33dfdc1a17e75ab157f5b59

Authored by Jacob Vosmaer
1 parent 47239aab

Give more information in rake gitlab:ldap:check

Showing 1 changed file with 5 additions and 3 deletions   Show diff stats
lib/tasks/gitlab/check.rake
... ... @@ -682,12 +682,14 @@ namespace :gitlab do
682 682  
683 683 namespace :ldap do
684 684 task check: :environment do
685   - next unless ldap_config.enabled
686   -
687 685 warn_user_is_not_gitlab
688 686 start_checking "LDAP"
689 687  
690   - print_users
  688 + if ldap_config.enabled
  689 + print_users
  690 + else
  691 + puts 'LDAP is disabled in config/gitlab.yml'
  692 + end
691 693  
692 694 finished_checking "LDAP"
693 695 end
... ...