Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #7449

Closed
Open
Created Aug 06, 2014 by Administrator@rootOwner

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:

  1. Set gitlab_rails['gitlab_signin_enabled'] = false in /etc/gitlab/gitlab.rb
  2. Run gitlab-ctl reconfigure
  3. 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")
  4. 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.

Assignee
Assign to
Time tracking