Ldap - gitlab
2021-03-18
/etc/gitlab/gitlab.rb
gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
main:
label: 'LDAP'
host: 'ldap2.hfjy.com'
port: 1636
uid: 'cn'
method: 'plain'
bind_dn: 'cn=HFAdmin,dc=hfjy,dc=com'
password: '1dsad.HF'
active_directory: true
allow_username_or_email_login: true
block_auto_created_users: false
base: 'ou=User,dc=hfjy,dc=com'
user_filter: ''
attributes:
username: ['cn', 'mobile']
email: ['mail']
name: 'displayName'
first_name: 'givenName'
last_name: 'sn'
group_base: 'ou=Group,dc=hfjy,dc=com'
admin_group: ''
sync_ssh_keys: false
EOS