Could not authenticate you from ldapmain because unknown provider(ldap)
Hi folks,
After updating to latest gitlab users are unable to login using LDAP. The error on logon is "Could not authenticate you from ldapmain because "unknown provider(ldap). available providers: ["ldapmain"]"."
Details below.
Updated from Package gitlab-ce.x86_64 0:9.4.3-ce.0.el7 TO gitlab-ce.x86_64 0:12.0.1-ce.0.el7
sudo gitlab-rake gitlab:ldap:check
Checking LDAP ...
LDAP: ... Server: ldapmain
LDAP authentication... Success
Gitlab.rb
gitlab_rails['ldap_enabled'] = true
###! **remember to close this block with 'EOS' below**
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
main: # 'main' is the GitLab 'provider ID' of this LDAP server
label: 'LDAP'
host: '172.50.5.200'
port: 389
uid: 'sAMAccountName'
bind_dn: 'CN=GitLab User,CN=Users,DC=doss,DC=net'
password: 'ABCD1234'
encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
verify_certificates: false
#ca_cert: ''
#ssl_version: ''
active_directory: true
allow_username_or_email_login: false
block_auto_created_users: true
base: 'CN=Users,DC=doss,DC=net'
user_filter: ''
attributes:
username: ['uid', 'userid', 'sAMAccountName']
email: ['mail', 'email', 'userPrincipalName']
name: 'cn'
first_name: 'givenName'
last_name: 'sn'
EOS
Edited by conrad h