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
1498d760
Commit
1498d760
authored
Jun 04, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ee
parents
c435af50
c0c5081d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
CHANGELOG-EE
CHANGELOG-EE
+2
-0
lib/gitlab/ldap/group.rb
lib/gitlab/ldap/group.rb
+5
-1
No files found.
CHANGELOG-EE
View file @
1498d760
v 7.12 (Unreleased)
- Fix error when viewing merge request with a commit that includes "Closes #<issue id>".
- Enhance LDAP group synchronization to check also for member attributes that only contain "uid=<username>"
- Enhance LDAP group synchronization to check also for submember attributes
v 7.11.4
- no changes specific to EE
...
...
lib/gitlab/ldap/group.rb
View file @
1498d760
...
...
@@ -42,13 +42,17 @@ module Gitlab
member_uids
.
any?
{
|
member_uid
|
member_uid
.
downcase
==
user_uid
}
elsif
member_dns
.
any?
{
|
member_dn
|
member_dn
.
downcase
==
user_dn
}
true
elsif
member_dns
.
any?
{
|
member_dn
|
member_dn
.
downcase
==
"uid="
+
user_uid
}
true
elsif
adapter
.
config
.
active_directory
adapter
.
dn_matches_filter?
(
user
.
dn
,
active_directory_recursive_memberof_filter
)
end
end
def
member_dns
if
entry
.
respond_to?
:member
if
(
entry
.
respond_to?
:member
)
&&
(
entry
.
respond_to?
:submember
)
entry
.
member
+
entry
.
submember
elsif
entry
.
respond_to?
:member
entry
.
member
elsif
entry
.
respond_to?
:uniquemember
entry
.
uniquemember
...
...
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