gitlab.rb:
external_url 'http://gitlab.xxxx.com'
tlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' ###! **remember to close this block with 'EOS' below**
main: # 'main' is the GitLab 'provider ID' of this LDAP server
label: 'LDAP'
host: '172.18.21.140'
port: 389
uid: 'sAMAccountName'
method: 'plain' # "tls" or "ssl" or "plain"
bind_dn: 'Administrator@utech.com'
password: 'Utech2018'
active_directory: true
allow_username_or_email_login: true
block_auto_created_users: false
base: 'dc=utech,dc=com'
user_filter: ''
EOS
gitlab_rails['manage_backup_path'] = true
gitlab_rails['backup_path'] = "/var/opt/gitlab/backups"
gitlab_rails['backup_archive_permissions'] = 0644
gitlab_rails['backup_keep_time'] = 604800