LDAP support on v9.5.0


Summary

After upgrading to v9.5.0 (from 9.4.X), if I enter my LDAP credentials, I get an error "no implicit conversion of String into Array".

Steps to reproduce

Configure bog standard LDAP, upgrade to v9.5.0, log in

Example Project

N/A

What is the current bug behavior?

Error "no implicit conversion of String into Array" returned to the user and also the log files

What is the expected correct behavior?

Redirected after login to the main page

Relevant logs and/or screenshots

Possible fixes

Please change line 104 in lib/gitlab/adapter.rb from %W(#{config.uid} cn dn) + config.attributes['username'] + config.attributes['email'] to %W(#{config.uid} cn dn) + [config.attributes['username']] + [config.attributes['email']]