LDAP doesn't work for new accounts
Summary
We switched now to LDAP. Users can successfully login with LDAP mask and credentials when the user is locally created in Gitlab.
Steps to reproduce
New users which aren't created in Gitlab localy can't login and get the message:
Could not authenticate you from Ldapmain because "Undefined method `downcase!' for nil:nilclass".
After creating localy this users they can login.
What is the current bug behavior?
New LDAP user can't login. And get unhelpful error message.
What is the expected correct behavior?
User should be able to login.
Relevant logs and/or screenshots
gitlab_rails['ldap_enabled'] = true
gitlab_rails['prevent_ldap_sign_in'] = false
###! **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: 'xxx'
port: 636
uid: 'cn'
bind_dn: 'uid=xxx'
password: 'xxx'
encryption: 'simple_tls'
verify_certificates: true
active_directory: false
allow_username_or_email_login: false
lowercase_usernames: true
block_auto_created_users: false
base: 'ou=xxx'
user_filter: '(&(objectclass=inetOrgPerson)(memberOf=cn=xxx))'
EOS
We are using the newest Gitlab CE omnibus version. Components up-to-date (17:04, 25.03.2020)
- GitLab 12.9.0 (9a382ff2c82)
- GitLab Shell12.0.0
- GitLab Workhorsev8.25.0
- GitLab APIv4
- GitLab Pages1.17.0
- Ruby 2.6.5p114
- Rails 6.0.2
- PostgreSQL 10.12
As LDAP we use OpenLDAP Server.
Edited by Roger Sikorski