How to Disable LDAP

Hi Everybody,

We are in the process of removing our AD server. We already have Google authentication working and that does a great job. In gitlab.rb I changed: gitlab_rails[‘ldap_enabled’] from true to false. When I running gitlab-ctl reconfigure, I get the following. That tells me either I found a bug or there is a different way to do this. Any advice would be appreciated. Also, this is the only change. If I change it back, the issue goes aware.

There was an error running gitlab-ctl reconfigure:

sidekiq_service[sidekiq] (gitlab::sidekiq line 23) had an error: Mixlib::ShellOut::ShellCommandFailed: runit_service[sidekiq] (gitlab::sidekiq line 67) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/gitlab/embedded/bin/sv restart /opt/gitlab/service/sidekiq ----
STDOUT: timeout: run: /opt/gitlab/service/sidekiq: (pid 501) 251450s, got TERM
STDERR: 
---- End output of /opt/gitlab/embedded/bin/sv restart /opt/gitlab/service/sidekiq ----
Ran /opt/gitlab/embedded/bin/sv restart /opt/gitlab/service/sidekiq returned 1

Running handlers complete
[2024-11-29T15:34:34+00:00] ERROR: Exception handlers complete
Infra Phase failed. 4 resources updated in 01 minutes 25 seconds
[2024-11-29T15:34:34+00:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/cinc-stacktrace.out
[2024-11-29T15:34:34+00:00] FATAL: ---------------------------------------------------------------------------------------
[2024-11-29T15:34:34+00:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT
[2024-11-29T15:34:34+00:00] FATAL: ---------------------------------------------------------------------------------------
[2024-11-29T15:34:34+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: sidekiq_service[sidekiq] (gitlab::sidekiq line 23) had an error: Mixlib::ShellOut::ShellCommandFailed: runit_service[sidekiq] (gitlab::sidekiq line 67) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/gitlab/embedded/bin/sv restart /opt/gitlab/service/sidekiq ----
STDOUT: timeout: run: /opt/gitlab/service/sidekiq: (pid 501) 251450s, got TERM
STDERR: 
---- End output of /opt/gitlab/embedded/bin/sv restart /opt/gitlab/service/sidekiq ----
Ran /opt/gitlab/embedded/bin/sv restart /opt/gitlab/service/sidekiq returned 1

I noticed that I didn’t include the stacktrace.out from the error so I went back to generate a new one and this time Gitlab came back up without any problems and the ldap option is missing. Nothing else changed.

I would still appreciate any input if anyone else has seen this.

EDIT:

Disabling LDAP also broke OAUTH. The only error was an error 500. I didn’t see anything in the output of gitlab-ctl reconfigure that hinted at an error.