Hello,
Recently we get this error when we want to logon with a domain account:
Could not authenticate you from Ldapmain because "Ssl ctx load verify file: bio lib".
We are using the self-hosted version of gitlab-ce ( gitlab/gitlab-ce ) - currently running version 17.3 - configured to authenticate against our Active Directory. Our docker server is Oracle Linux Server release 8.10 (more or less binary compatible with rhel 8). I’m not exactly sure when the problem started to occur but must be 2 to 3 weeks ago due to the fact that a lot of employees were on summerbreak.
I asked the windows engineers if something got been change (only windows updates). The gitlab.rb inside the container was not changed. On the other hand - there is a task to get new builds every Sunday night so the only thing that might have changed is gitlab-ce itself, but I do not check every Monday if a new version was pulled.
For now, some employees can log in and use gitlab with local accounts but a lot of servers periodically pull updated repos using domain credentials.
To see if items needed updating I updated the os and re-pulled the latest image. That did not solve the issue.
Configuration
This is the composefile:
---
version: "3"
services:
gitlabce:
container_name: GitLab-CE
image: gitlab/gitlab-ce:latest
network_mode: bridge
restart: always
ports:
- "9080:9080"
- "9443:9443"
- "9022:22"
volumes:
- "/home/docker/gitlab-ce/config:/etc/gitlab"
- "/home/docker/gitlab-ce/data:/var/opt/gitlab"
- "/home/docker/gitlab-ce/gitlab-ce/log:/var/log/gitlab"
environment:
TZ: Europe/Berlin
HOST_OS: Oracle Linux 8
HOST_HOSTNAME: myserver"
HOST_CONTAINERNAME: GitLab-CE
GITLAB_OMNIBUS_CONFIG: external_url 'https://myserver.local:9080/'
Ldap config in gitlab.rb (I masked a couple of things but this config is - was? - working i spinned up the container for the 1st time - januari 2024)
gitlab_rails['ldap_enabled'] = true
gitlab_rails['prevent_ldap_sign_in'] = false
gitlab_rails['ldap_servers'] = {
'main' => {
'label' => 'LDAP',
'host' => 'dca.local',
'port' => 636,
'uid' => 'sAMAccountName',
'encryption' => 'simple_tls',
'verify_certificates' => false,
'bind_dn' => 'ldap@dca.local',
'password' => '****',
'tls_options' => {
'ca_file' => 'valid_root_ca.pem',
'ssl_version' => 'SSLv23',
'ciphers' => '',
'cert' => '',
'key' => ''
},
'timeout' => 10,
'active_directory' => true,
'allow_username_or_email_login' => false,
'block_auto_created_users' => false,
'base' => 'dc=local',
'user_filter' => '(&(objectClass=user)(memberOf=CN=GIT_Users,DC=local))',
'attributes' => {
'username' => ['uid', 'userid', 'sAMAccountName'],
'email' => ['mail', 'email', 'userPrincipalName'],
'name' => 'cn',
'first_name' => 'givenName',
'last_name' => 'sn'
},
'lowercase_usernames' => false,
# EE Only
'group_base' => '',
'admin_group' => '',
'external_groups' => [],
'sync_ssh_keys' => false
}
}
Please advice
Regards
Sjoerd