Hello,
I am extremely new to GIT/GITLAB, but have successfully been able set up a GITLAB server.
My only issue that has me banging my head against the wall, is being able to properly configure the ‘gitlab.rb’ file.
I’ve set the ‘base’ line to point to an OU, after I run the ldap:check it will list the security group, but when attempting to login with a member of that group, it will not work.
Is there anything I’m missing, I would appreciate any assistance.
Below is my ‘gitlab.rb’ file
gitlab_rails[‘ldap_enabled’] = true
###! remember to close this block with ‘EOS’ below
gitlab_rails[‘ldap_servers’] = YAML.load <<-‘EOS’
main: # ‘main’ is the GitLab ‘provider ID’ of this LDAP server
label: ‘LDAP’
host: ‘domain.com’
port: 389
uid: ‘sAMAccountName’
bind_dn: ‘CN=GIT1,OU=GITLAB,DC=domain,DC=com’
password: ‘********’
encryption: ‘plain’ # “start_tls” or “simple_tls” or “plain”
verify_certificates: true
active_directory: true
allow_username_or_email_login: true
lowercase_usernames: true
block_auto_created_users: false
base: 'OU=GITLAB_USERS,DC=domain,DC=com'
user_filter: ‘(&(memberof=OU=GITLAB_USERS,DC=domain,DC=com))’
EOS