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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
337f5dcf
Commit
337f5dcf
authored
Sep 27, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor ldap/sync/group.rb
parent
410dd66f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
ee/lib/ee/gitlab/ldap/sync/group.rb
ee/lib/ee/gitlab/ldap/sync/group.rb
+7
-3
No files found.
ee/lib/ee/gitlab/ldap/sync/group.rb
View file @
337f5dcf
...
...
@@ -84,9 +84,7 @@ module EE
private
def
update_access_levels
(
access_levels
,
group_link
)
if
config
.
group_base
.
blank?
&&
group_link
.
cn
logger
.
debug
{
"No `group_base` configured for '
#{
provider
}
' provider and group link CN
#{
group_link
.
cn
}
. Skipping"
}
elsif
member_dns
=
get_member_dns
(
group_link
)
if
member_dns
=
get_member_dns
(
group_link
)
access_levels
.
set
(
member_dns
,
to:
group_link
.
group_access
)
logger
.
debug
do
...
...
@@ -100,6 +98,12 @@ module EE
end
def
dns_for_group_cn
(
group_cn
)
if
config
.
group_base
.
blank?
logger
.
debug
{
"No `group_base` configured for '
#{
provider
}
' provider and group link CN
#{
group_link
.
cn
}
. Skipping"
}
return
nil
end
proxy
.
dns_for_group_cn
(
group_cn
)
end
...
...
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