HI Team,
I am am facing an issue where unable to connect with AD server, when i run
" gitlab-rake gitlab:ldap:check"
and output is : Checking LDAP …
LDAP: … Server: ldapmain
LDAP authentication… Failed. Check bind_dn
and password
configuration values
LDAP users with access to your GitLab server (only showing the first 100 results)
Checking LDAP … Finished
below is my config for ldap:
gitlab_rails[‘ldap_enabled’] = true
gitlab_rails[‘prevent_ldap_sign_in’] = false
###! remember to close this block with ‘EOS’ below
gitlab_rails[‘ldap_servers’] = YAML.load <<-‘EOS’
gitlab_rails[‘ldap_servers’] = YAML.load <<-‘EOS’
main: # ‘main’ is the GitLab ‘provider ID’ of this LDAP server
label: ‘ActiveDirectory’
host: ‘10.0.0.211’
port: 389
uid: ‘sAMAccountName’
encryption: ‘plain’ # “start_tls” or “simple_tls” or “plain”
verify_certificates: false
bind_dn: ‘CN=waleed.ahmed,CN=git,CN=Aksa.com.pk,DC=aksa,DC=com,DC=pk’
bind_dn: 'waleed.ahmed@domain.com.pki'
password: '1234abc'
smartcard_auth: false
active_directory: true
allow_username_or_email_login: false
lowercase_usernames: true
block_auto_created_users: true
base: 'DC=domain,DC=com,DC=pki'
attributes:
username: ['uid', 'userid', 'sAMAccountName']
email:['mail', 'email', 'userPrincipalName']
name: 'cn'
please suggest would really appreciate .Thankyou