git - Configure GitLab with open LDAP -


i trying configure gitlab openldap authenticate users. have configured openldap , working fine jenkins. gitlab giving error could not authenticate ldapmain because "invalid credentials".

below gitlab.rb configs:

gitlab_rails['ldap_enabled'] = true  gitlab_rails['ldap_servers'] = yaml.load <<-'eos' # remember close block 'eos' below    main: # 'main' gitlab 'provider id' of ldap server      label: 'ldap'      host: 'localhost'      port: 389      uid: 'uid'      method: 'plain' # "tls" or "ssl" or "plain"      bind_dn: 'cn=admin,dc=ldap,dc=com'      password: 'waqas'      active_directory: false      allow_username_or_email_login: true     #block_auto_created_users: false      base: 'cn=appliance,dc=ldap,dc=com'      user_filter: '' # attributes: #   username: ['uid', 'userid', 'samaccountname'] #   email:    ['mail', 'email', 'userprincipalname'] #   name:       'cn' #       first_name: 'givenname' #       last_name:  'sn' #     ## ee #    group_base: 'ou=w-integrate,dc=ldap,dc=com'      #admin_group: 'cn=admin,dc=ldap,dc=com' #     sync_ssh_keys: false #   eos 

enter image description here , openldap screen shoot attached. can 1 correct me doing wrong.

your base should not user (or inetorgperson, group of users cn=appliance), should limited dc entries a base dn:

base: 'dc=ldap,dc=com' 

this differ bind_dn, binding account, reference user: bind_dn: 'cn=admin,dc=ldap,dc=com': there cn there.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -