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
Léo-Paul Géneau
gitlab-ce
Commits
66ccf2d9
Commit
66ccf2d9
authored
Jan 13, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document the `auto_link_ldap_user` setting
parent
6f4f99f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
doc/integration/omniauth.md
doc/integration/omniauth.md
+10
-0
No files found.
doc/integration/omniauth.md
View file @
66ccf2d9
...
@@ -41,6 +41,9 @@ that are in common for all providers that we need to consider.
...
@@ -41,6 +41,9 @@ that are in common for all providers that we need to consider.
-
`allow_single_sign_on`
allows you to specify the providers you want to allow to
-
`allow_single_sign_on`
allows you to specify the providers you want to allow to
automatically create an account. It defaults to
`false`
. If
`false`
users must
automatically create an account. It defaults to
`false`
. If
`false`
users must
be created manually or they will not be able to sign in via OmniAuth.
be created manually or they will not be able to sign in via OmniAuth.
-
`auto_link_ldap_user`
can be used if you have
[
LDAP / ActiveDirectory
](
ldap.md
)
integration enabled. It defaults to false. When enabled, users automatically
created through OmniAuth will be linked to their LDAP entry as well.
-
`block_auto_created_users`
defaults to
`true`
. If
`true`
auto created users will
-
`block_auto_created_users`
defaults to
`true`
. If
`true`
auto created users will
be blocked by default and will have to be unblocked by an administrator before
be blocked by default and will have to be unblocked by an administrator before
they are able to sign in.
they are able to sign in.
...
@@ -52,6 +55,10 @@ SAML, Shibboleth, Crowd or Google, or set it to `false` otherwise any user on
...
@@ -52,6 +55,10 @@ SAML, Shibboleth, Crowd or Google, or set it to `false` otherwise any user on
the Internet will be able to successfully sign in to your GitLab without
the Internet will be able to successfully sign in to your GitLab without
administrative approval.
administrative approval.
>**Note:**
`auto_link_ldap_user`
requires the
`uid`
of the user to be the same in both LDAP
and the OmniAuth provider.
To change these settings:
To change these settings:
*
**For omnibus package**
*
**For omnibus package**
...
@@ -72,6 +79,7 @@ To change these settings:
...
@@ -72,6 +79,7 @@ To change these settings:
# using an array, e.g. ["saml", "twitter"], or as true/false to allow all providers or none.
# using an array, e.g. ["saml", "twitter"], or as true/false to allow all providers or none.
# User accounts will be created automatically when authentication was successful.
# User accounts will be created automatically when authentication was successful.
gitlab_rails['omniauth_allow_single_sign_on'] = ['saml', 'twitter']
gitlab_rails['omniauth_allow_single_sign_on'] = ['saml', 'twitter']
gitlab_rails['omniauth_auto_link_ldap_user'] = true
gitlab_rails['omniauth_block_auto_created_users'] = true
gitlab_rails['omniauth_block_auto_created_users'] = true
```
```
...
@@ -99,6 +107,8 @@ To change these settings:
...
@@ -99,6 +107,8 @@ To change these settings:
# User accounts will be created automatically when authentication was successful.
# User accounts will be created automatically when authentication was successful.
allow_single_sign_on: ["saml", "twitter"]
allow_single_sign_on: ["saml", "twitter"]
auto_link_ldap_user: true
# Locks down those users until they have been cleared by the admin (default: true).
# Locks down those users until they have been cleared by the admin (default: true).
block_auto_created_users: true
block_auto_created_users: true
```
```
...
...
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