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
7b1b6641
Commit
7b1b6641
authored
Jun 06, 2019
by
Pavel Shutsin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EE port: add app-wide LDAP membership lock field
parent
63e56515
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
+30
-0
db/migrate/20190604091310_add_ldap_membership_lock.rb
db/migrate/20190604091310_add_ldap_membership_lock.rb
+20
-0
db/schema.rb
db/schema.rb
+1
-0
doc/administration/auth/ldap-ee.md
doc/administration/auth/ldap-ee.md
+9
-0
No files found.
db/migrate/20190604091310_add_ldap_membership_lock.rb
0 → 100644
View file @
7b1b6641
# frozen_string_literal: true
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
AddLdapMembershipLock
<
ActiveRecord
::
Migration
[
5.1
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_column_with_default
(
:application_settings
,
:lock_memberships_to_ldap
,
:boolean
,
default:
false
)
end
def
down
remove_column
(
:application_settings
,
:lock_memberships_to_ldap
)
end
end
db/schema.rb
View file @
7b1b6641
...
@@ -195,6 +195,7 @@ ActiveRecord::Schema.define(version: 20190611161641) do
...
@@ -195,6 +195,7 @@ ActiveRecord::Schema.define(version: 20190611161641) do
t
.
text
"encrypted_lets_encrypt_private_key_iv"
t
.
text
"encrypted_lets_encrypt_private_key_iv"
t
.
boolean
"dns_rebinding_protection_enabled"
,
default:
true
,
null:
false
t
.
boolean
"dns_rebinding_protection_enabled"
,
default:
true
,
null:
false
t
.
boolean
"default_project_deletion_protection"
,
default:
false
,
null:
false
t
.
boolean
"default_project_deletion_protection"
,
default:
false
,
null:
false
t
.
boolean
"lock_memberships_to_ldap"
,
default:
false
,
null:
false
t
.
index
[
"usage_stats_set_by_user_id"
],
name:
"index_application_settings_on_usage_stats_set_by_user_id"
,
using: :btree
t
.
index
[
"usage_stats_set_by_user_id"
],
name:
"index_application_settings_on_usage_stats_set_by_user_id"
,
using: :btree
end
end
...
...
doc/administration/auth/ldap-ee.md
View file @
7b1b6641
...
@@ -183,6 +183,15 @@ group, as opposed to the full DN.
...
@@ -183,6 +183,15 @@ group, as opposed to the full DN.
1.
[
Restart GitLab
][
restart
]
for the changes to take effect.
1.
[
Restart GitLab
][
restart
]
for the changes to take effect.
## Global group memberships lock
"Lock memberships to LDAP synchronization" setting allows instance administrators
to lock down user abilities to invite new members to a group. When enabled following happens:
1.
Only administrator can manage memberships of any group including access levels.
2.
Users are not allowed to share project with other groups or invite members to a project created in a group.
## Adjusting LDAP user sync schedule
## Adjusting LDAP user sync schedule
> Introduced in GitLab Enterprise Edition Starter.
> Introduced in GitLab Enterprise Edition Starter.
...
...
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