LDAP authentication failed on GitLab 5.4
Created by: csfreebird
I always got the following error when trying to login using my LDAP account: Could not authorize you from LDAP because "Invalid credentials".
Some people said it was fixed already. But I am sure the LDAP configuration is correct in gitlab.yml file.
LDAP settings
ldap: enabled: true host: 'mmm.$company.com' base: 'DC=$company,DC=com' port: 389 uid: 'sAMAccountName' method: 'plain' # "ssl" or "plain" bind_dn: 'CN=firstName lastName,OU=China,OU=International,OU=Offices,DC=$company,DC=com' password: 'mypwd'
I am sure the bind_dn and base fields are correct, because I tried ldapsearch to connect our ActiveDirectory server from gitlab server, it passed.
And I cannot find any useful log from production.log, just like below: 4724800: Parameters: {"utf8"=>"✓", "authenticity_token"=>"qquaKce4brdTL2pFsRWDCeC2ncQrFZd/JvPKXnCzBxI=", "username"=>"myAccountName", "password"=>"[FILTERED]"}
How to profile this problem now?