Crowd Authentication Method not working on Gitlab-CE > 11.1
Summary
I was deploying gitlab-ce via docker on a new server and used the gitlab/gitlab-ce:latest image with the same ENV parameters as an already running instance, which authenticates via Atlassian Crowd. This new instance came up and i could not choose the authentication method "Crowd" (it didn't show up in the gui).
Steps to reproduce
Using the following GITLAB_OMNIBUS_CONFIG works in older versions (< 10.8.4) where i can select CROWD in the Auth Tab.
gitlab_rails['omniauth_allow_single_sign_on'] = ['crowd']
gitlab_rails['omniauth_block_auto_created_users'] = false
gitlab_rails['omniauth_providers'] = [
{
"name" => "crowd",
"args" => {
"crowd_server_url" => "https://crowd.mycompany.com/crowd",
"application_name" => "myappname",
"application_password" => "xxxxxx"
}
}
]
or just try with this mini docker-compose.yml File:
version: "2"
services:
gitlab:
image: 'gitlab/gitlab-ce:10.8.4-ce.0'
container_name: alm_gitlab
restart: always
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://localhost'
nginx['enable'] = true
nginx['listen_port'] = 80
nginx['listen_https'] = false
gitlab_rails['omniauth_allow_single_sign_on'] = ['crowd']
gitlab_rails['omniauth_block_auto_created_users'] = false
gitlab_rails['omniauth_providers'] = [
{
"name" => "crowd",
"args" => {
"crowd_server_url" => "https://crowd.mycrowdurl.com/crowd",
"application_name" => "mycrowdapp",
"application_password" => "xxxxxx"
}
}
]
letsencrypt['enable'] = false
gitlab_rails['gitlab_https'] = false
gitlab_rails['gitlab_port'] = 80
registry_nginx['listen_port'] = 80
registry_nginx['listen_https'] = false
gitlab_rails['time_zone'] = 'Europe/Berlin'
gitlab_rails['backup_keep_time'] = 14515200
gitlab_rails['gitlab_default_projects_features_issues'] = false
gitlab_rails['gitlab_default_projects_features_merge_requests'] = true
gitlab_rails['gitlab_default_projects_features_wiki'] = false
gitlab_rails['gitlab_default_projects_features_snippets'] = true
gitlab_rails['gitlab_default_projects_features_builds'] = false
gitlab_rails['gitlab_default_projects_features_container_registry'] = false
unicorn['worker_timeout'] = 60
unicorn['worker_processes'] = 3
logging['logrotate_frequency'] = "daily"
logging['logrotate_rotate'] = 14
logging['logrotate_compress'] = "compress"
logging['logrotate_method'] = "copytruncate"
nginx['logrotate_frequency'] = "daily"
nginx['logrotate_rotate'] = 14
nginx['logrotate_compress'] = "compress"
nginx['logrotate_method'] = "copytruncate"
gitlab_rails['gitlab_shell_ssh_port'] = 2222
ports:
- '2222:22'
- '80:80'
Just change Image Tags to see the issue.
Latest image and any 11.X.X doesnt work anymore.
What is the current bug behavior?
im not able to login via Crowd anymore in latest versions.
What is the expected correct behavior?
I should be able to see Crowd as auth method and login via Crowd.
Relevant logs and/or screenshots
I could not see any errors related to this in the logfiles.