-
-
Save megamorf/ad0207e1c3dbbaa280d4 to your computer and use it in GitHub Desktop.
Gitlab LDAP configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gitlab_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: 'mydomain.internal' | |
port: 389 | |
uid: 'sAMAccountName' | |
method: 'plain' # "tls" or "ssl" or "plain" | |
bind_dn: 'CN=ldap query,OU=ServiceAccounts,DC=mydomain,DC=internal' | |
password: 'ASuperSecretPassword' | |
active_directory: true | |
allow_username_or_email_login: false | |
block_auto_created_users: true | |
base: 'OU=UserAccounts,DC=mydomain,DC=internal' | |
user_filter: '' | |
## EE only | |
group_base: '' | |
admin_group: '' | |
sync_ssh_keys: false | |
EOS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment