Skip to content
Snippets Groups Projects
Commit 063aa5c9 authored by David's avatar David
Browse files

add an other ldap configuration example

parent b26a3d53
Branches
Tags
1 merge request!6773add an other ldap configuration example
Loading
@@ -162,12 +162,32 @@ main: # 'main' is the GitLab 'provider ID' of this LDAP server
Loading
@@ -162,12 +162,32 @@ main: # 'main' is the GitLab 'provider ID' of this LDAP server
EOS EOS
``` ```
   
An other example:
```ruby
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: 'ldap.company.com'
port: 3288
uid: 'sAMAccountName'
method: 'plain' # "tls" or "ssl" or "plain"
bind_dn: 'america\\momo'
password: 'MYPASSWORD'
active_directory: true
allow_username_or_email_login: true
base: 'DC=company,DC=com'
user_filter: '(&(objectclass=user)(|(samaccountname=momo)(samaccountname=toto)))'
EOS
```
**Source configuration** **Source configuration**
   
Use the same format as `gitlab_rails['ldap_servers']` for the contents under Use the same format as `gitlab_rails['ldap_servers']` for the contents under
`servers:` in the example below: `servers:` in the example below:
   
```
production: production:
# snip... # snip...
ldap: ldap:
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment