Disabling default login with LDAP not working
Created by: Th3Dan
I'm using gitlab with LDAP and so I want to disable the default git login by adding
gitlab_rails['gitlab_signin_enabled'] = false
to /etc/gitlab/gitlab.rb After that I run "gitlab-ctl reconfigure" to update the changes in all gitlab files. But I still get both login tabs.
I found out that this can be solved by making any changes to the login-template:
- Set gitlab_rails['gitlab_signin_enabled'] = false in /etc/gitlab/gitlab.rb
- Run gitlab-ctl reconfigure
- Open /opt/gitlab/embedded/service/gitlab-rails/app/views/devise/sessions/new.html.haml and append some random text at the beginning (e.g. "Test")
- Run gitlab-ctl reconfigure again, now the default login is disabled as it should.
It looks like that something with the file cache went wrong. When I make changes to the template above and run gitlab-ctl reconfigure, it has no effect. They only have when I make changes to the template AND to the /etc/gitlab/gitlab.rb config file and then reconfigure gitlab.