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
, 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
Post a Comment