Could not authorize you from LDAP because "Invalid credentials".

after installing and configuring GitLab for LDAP I am unable to login with a user account that I know works. it returns the same error each time.

I have tried with GitLab 7.2.1 and have tried with 7.3.2 but still I am having the same problem. I know I have the correct LDAP connection details posted below as I have used it in middleware configurations before. Also I can use ldapsearch to find my user from the server. I do not have access to the AD servers so canont get logs from there.

Config:

`gitlab_rails['ldap_enabled'] = true

gitlab_rails['ldap_host'] = '## company url ##'

gitlab_rails['ldap_port'] = 389

gitlab_rails['ldap_uid'] = 'mail'

gitlab_rails['ldap_method'] = 'plain' # 'ssl' or 'plain'

gitlab_rails['ldap_bind_dn'] = ''

gitlab_rails['ldap_password'] = ''

gitlab_rails['ldap_allow_username_or_email_login'] = false

gitlab_rails['ldap_base'] = '## company bind ##'

gitlab_rails['gitlab_signup_enabled'] = 'true'

gitlab_rails['gitlab_default_projects_limit'] = 0

gitlab_rails['gitlab_default_can_create_group'] = false`

I have the right username and password tested with others in my team. I have tried ssl and plain ldap on ports 389 & 636.

After wiresharking the traffic I recorded this:

Selection_214

As you can see the return code is 50 on packet.

However it returns:

Could not authorize you from LDAP because "Invalid credentials".

At the login page. Which is a 49 response.

It seems to authenticate the initial bind request successfully to the ldap server then fails the user search request (as shown in the wireshark image).

Any ideas?