Skip to content

Instantly share code, notes, and snippets.

@megamorf
Last active February 25, 2016 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save megamorf/ad0207e1c3dbbaa280d4 to your computer and use it in GitHub Desktop.
Save megamorf/ad0207e1c3dbbaa280d4 to your computer and use it in GitHub Desktop.
Gitlab LDAP configuration
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