Skip to content

Instantly share code, notes, and snippets.

@spuder
Last active December 26, 2015 04:19
Show Gist options
  • Save spuder/7092511 to your computer and use it in GitHub Desktop.
Save spuder/7092511 to your computer and use it in GitHub Desktop.
gitlab ldap config
A working configuration pulled from a puppet manifest.
The syntax is in puppet declaration language. Don't copy the syntax, simply refer to the values.
ldap_enabled => true,
ldap_host => 'microsoft.com',
ldap_base => 'DC=com',
ldap_port => '636', #Make sure firewall is open
ldap_uid => 'sAMAccountName', #LDAP = 'uid', AD = 'sAMAccountName'
ldap_method => 'ssl', #either ssl or plain
ldap_bind_dn => 'CN=foo,CN=users,DC=microsoft,DC=com' #foo=the bind user, CN=users is the search base
ldap_bind_password => 'bar', #bar=the bind user password
Here is a link to a puppet module that will setup gitlab for you.
https://forge.puppetlabs.com/spuder/gitlab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment