Gitlab LDAP Authentication Failure
Created by: ghovat
I want to connect my Gitlab Instance with my OpenLDAP Host. Here is my LDAP Config:
ou=users
Distinguished Name:
[email protected],ou=users,dc=ldap,dc=COMPANY,dc=com
cn = [email protected]
uid = [email protected]
displayName = FIRSTNAME LASTNAME
givenName = FIRSTNAME
sn = LASTNAME
o = FIRSTNAME.LASTNAME
Everything Upercase means placeholder for a user
Here is my gitlab.rb
gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = {
'main' => {
'label' => 'LDAP',
'active_directory' => false,
'host' => 'ldap.COMPANY.com',
'port' => 389,
'encryption' => 'plain',
'allow_username_or_email_login' => false,
'uid' => 'cn',
'method' => 'plain',
'username' => 'o',
'email' => 'cn',
'name' => 'displayName',
'firstname' => 'givenName',
'lastname' => 'sn',
#'bind_dn' => '',
#'password' => '',
'base' => 'DC=ldap,DC=COMPANY,DC=com',
}
}
Currently i dont need a bind admin for quering. If i run $ gitlab-rake gitlab:ldap:check It returns all the users without any problem. But as soon as I try to login I get a wrong credentials error. I dont see any error in my configuration and nearly the same configuration i use for other services as well.
Thanks