Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
063aa5c9
Commit
063aa5c9
authored
Oct 10, 2016
by
David
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add an other ldap configuration example
parent
b26a3d53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
doc/administration/auth/ldap.md
doc/administration/auth/ldap.md
+21
-1
No files found.
doc/administration/auth/ldap.md
View file @
063aa5c9
...
...
@@ -162,12 +162,32 @@ main: # 'main' is the GitLab 'provider ID' of this LDAP server
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**
Use the same format as
`gitlab_rails['ldap_servers']`
for the contents under
`servers:`
in the example below:
```
production:
# snip...
ldap:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment