Issue with enabling ldap with gitlab

Hi All,

i have followed all the steps outlined in the below url and even followed the comments mentioned in the below thread. yet i keep getting ldap is disabled in config/gitlab.yml.

i used the omnibus installation method to install ubuntu and have edited the “sudo vi /etc/gitlab/gitlab.rb” file. can anyone share insights on what else could be missed?

Reference URL: Integrate LDAP with GitLab | GitLab

Issue URL: LDAP Configuration Ldapmain because "Invalid credentials for ..." - #4 by tannese

gitlab@gitlab:~$ sudo gitlab-rake gitlab:ldap:check
Checking LDAP …
LDAP: … LDAP is disabled in config/gitlab.yml
Checking LDAP … Finished

Additional Information:
gitlab@gitlab:/$ sudo gitlab-rake gitlab:env:info
System information
System: Ubuntu 20.04
Proxy: no
Current User: git
Using RVM: no
Ruby Version: 2.7.5p203
Gem Version: 3.1.4
Bundler Version:2.2.33
Rake Version: 13.0.6
Redis Version: 6.2.6
Sidekiq Version:6.4.0
Go Version: unknown

GitLab information
Version: 14.9.2-ee
Revision: 3034418fb31
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: PostgreSQL
DB Version: 12.7
SSH Clone URL:
Elasticsearch: no
Geo: no
Using LDAP: no
Using Omniauth: yes
Omniauth Providers:

GitLab Shell
Version: 13.24.0
Repository storage paths:

  • default: /var/opt/gitlab/git-data/repositories
    GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell

HI @irajeshr

please post the LDAP config snippet from gitlab.rb and also make sure you run gitlab-ctl reconfigure after you edit the file.