Ldap users get Invalid Credentials error
Gitlab version 8.13.3-ce
This is configured on a latest Docker image from gitlab (gitlab/gitlab-ce:8.13.3-ce.0)
I configured LDAP under /etc/gitlab/gitlab.rb
main: # 'main' is the GitLab 'provider ID' of this LDAP server label: 'LDAP' host: 'abc.test.net' port: '389' uid: 'uid' method: 'plain' # "tls" or "ssl" or "plain" bind_dn: 'user' password: 'password' active_directory: false allow_username_or_email_login: false block_auto_created_users: false base: 'DC=test,DC=net' user_filter: ''
I get below result when i execute #gitlab-rake gitlab:ldap:check Checking LDAP ...
LDAP users with access to your GitLab server (only showing the first 100 results) Server: ldapmain DN: cn=test1@test.net,cn=Users,cn=Global,cn=Zones,ou=UNIX,ou=Services,dc=test,dc=net uid: test1 DN: cn=test2@test.net,cn=Users,cn=Global,cn=Zones,ou=UNIX,ou=Services,dc=test,dc=net uid: test2 DN: cn=test3@test.net,cn=Users,cn=Global,cn=Zones,ou=UNIX,ou=Services,dc=test,dc=net uid: test3 DN: cn=test4@test.net,cn=Users,cn=Global,cn=Zones,ou=UNIX,ou=Services,dc=test,dc=net uid: test4
However the ldap users are unable to login to gitlab, they get invalid credentials error
I find below message in unicorn_stdout.log
I, [2016-12-14T10:36:09.892167 #77789] INFO -- omniauth: (ldapmain) Callback phase initiated. E, [2016-12-14T10:36:10.009886 #77789] ERROR -- omniauth: (ldapmain) Authentication failure! invalid_credentials encountered. I, [2016-12-14T10:38:35.671693 #77787] INFO -- omniauth: (ldapmain) Callback phase initiated. E, [2016-12-14T10:38:35.763118 #77787] ERROR -- omniauth: (ldapmain) Authentication failure! invalid_credentials encountered. I, [2016-12-14T10:39:59.784376 #77787] INFO -- omniauth: (ldapmain) Callback phase initiated. E, [2016-12-14T10:39:59.926323 #77787] ERROR -- omniauth: (ldapmain) Authentication failure! invalid_credentials encountered. I, [2016-12-14T10:48:15.797568 #77787] INFO -- omniauth: (ldapmain) Callback phase initiated. E, [2016-12-14T10:48:15.913536 #77787] ERROR -- omniauth: (ldapmain) Authentication failure! invalid_credentials encountered. I, [2016-12-14T10:48:45.521235 #77789] INFO -- omniauth: (ldapmain) Callback phase initiated. E, [2016-12-14T10:48:45.629259 #77789] ERROR -- omniauth: (ldapmain) Authentication failure! invalid_credentials encountered.
ldapsearch with all the variables configured in gitlab.rb file gives me a valid result
Appreciate any help to fix this issue