LDAP Config Issue: "Undefined method `to sym' for nil:nilclass did you mean? to s".
Hi - sorry if I miss something - first gitlab issue
RHEL - Latest Omnibus Install
I am trying to enable a really simple LDAP config and can see from the LDAP's own logs that the query hits the LDAP successfully and is correct - but in the user interface I get:
Could not authenticate you from Ldapmain because "Undefined method `to sym' for nil:nilclass did you mean? to s".
The Rake also gives the same result.
Not sure if I have messed up the config file with spacing or similar??
My gitlab.rb ldap section (ommitting commented sections):
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
main: # 'main' is the GitLab 'provider ID' of this LDAP server
label: 'LDAP'
host: 'ppcds.mycompany.com'
port: 389
uid: 'legacyuid'
active_directory: false
base: 'o=mycompany.com'
user_filter: '(&(status=ACTIVE)(objectclass=person))'
EOS
This error only occurs on a successful authentication. If I enter an incorrect user/pass I am told, correctly:
Could not authenticate you from Ldapmain because "Invalid credentials".
Which also demonstrates that the LDAP is queried successfully and it's some gitlab process post-authentication that is the problem.