- Technology stack
- Architecture of the Solution
- Installing and Configuring MULTIDIRECTORY
- Configuring Kerberos in the MULTIDIRECTORY Web Interface
- Configuring DNS in the MULTIDIRECTORY Web Interface
- DHCP Configuration
- Domain Trust Configuration
- Group Policy
- Connecting MULTIFACTOR Self-Service Portal to MULTIDIRECTORY
- User, Group, and Resource Management
- Connecting to MULTIFACTOR
- Access Policies
- LDAP Schema
- LDAP Logging Configuration
- Password Policies
- Role and Permission Configuration
- LDAP Authentication in Ansible AWX
- LDAP Authentication in ArgoCD
- LDAP Authentication in GitLab
- LDAP Authentication in GitFlic
- LDAP Authentication in Jenkins
- LDAP Authentication in Harbor
- LDAP Authentication in Nexus
- LDAP Authentication in PostgreSQL
- LDAP Authentication in Rancher
- LDAP Authentication in Proxmox VE
- LDAP Authentication in SpaceVM
- LDAP Authentication in Tantor
- LDAP Authentication in Shturval
- LDAP Authentication in zVirt
- LDAP Authentication in GLPI
LDAP Authentication Setup Guide for GitLab
Overview
This article explains how to configure LDAP authentication in GitLab, using MULTIDIRECTORY as the identity provider.
Prerequisites
- A running MULTIDIRECTORY instance.
- A pre-installed GitLab environment (Omnibus package recommended).
Preparation
- Create a dedicated service account in
MULTIDIRECTORYwith read-only permissions to the directory. GitLab will use this account to bind and query user and group data. - Create access groups in
MULTIDIRECTORYforGitLabusers to support role mapping and access control.
Configuring GitLab for Integration with MULTIDIRECTORY
On the GitLab server, edit the configuration file: /etc/gitlab/gitlab.rb.
gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
main: # 'main' is the GitLab 'provider ID' of this LDAP server
label: 'LDAP'
host: 'example.com' # specify the MULTIDIRECTORY domain
port: #389 /636 # specify the port
uid: 'sAMAccountName'
bind_dn: 'cn=admin,dc=example,dc=com' # service account
password: 'YourPassword' # service account password
encryption: 'plain' # "start_tls" or "simple_tls" or "plain" # simple_tls for ldaps
verify_certificates: true
smartcard_auth: false
# active_directory: true
smartcard_ad_cert_field: 'altSecurityIdentities'
smartcard_ad_cert_format: null # 'issuer_and_serial_number', 'issuer_and_subject' , 'principal_name'
# allow_username_o
lowercase_usernames: false
block_auto_created_users: false
base: 'dc=example,dc=com' #search base
user_filter: ''
## EE only
group_base: ''
admin_group: ''
sync_ssh_keys: false
EOS
Note: Users will be created in GitLab only after they successfully authenticate for the first time.
