Could not authorize you from LDAP because "Invalid credentials"
I saw few other threads with similar title, but could not really follow their solution. I am a newbie to gitlab and ldap. I am trying to set up a gitlab account using company's ldap, but I am not able to log in.
Here's my settings from gitlab.rb:
==============================================================================================
gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' # remember to close this block with 'EOS' below
main: # 'main' is the GitLab 'provider ID' of this LDAP server
label: 'LDAP'
host: 'ldap.company_name.com'
port: 389
uid: 'sAMccountName'
method: 'plain' # "tls" or "ssl" or "plain"
bind_dn: 'cn=Users,dc=na,dc=company_name,dc=com'
password: 'password'
active_directory: true
allow_username_or_email_login: false
block_auto_created_users: false
base: 'cn=Users,dc=na,dc=gilead,dc=com'
user_filter: ''
==============================================================================================
I ran ldap:check to verify this and do not get any error/logs here -
gitlab-rake gitlab:ldap:check
Checking LDAP ...
LDAP users with access to your GitLab server (only showing the first 100 results)
Server: ldapmain
Checking LDAP ... Finished
So, it dosen't throw any errors/logs. I don't understand what I am missing here. Specifically, I have the following questions -
- what is bind_dn, base, password? What are the possible input for these?
- how do i find the values for cn,ou, etc..? are these company specific?
- should I create a database or something to add the list of users?
Any advise/inputs would be really useful. Thanks very much!
Raghu