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
Kazuhiko Shiozaki
gitlab-ce
Commits
91e7692b
Commit
91e7692b
authored
Jan 30, 2014
by
Jakub Jirutka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix searching by extern_uid for LDAP to be case-insensitive
parent
5e935bfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
lib/gitlab/ldap/user.rb
lib/gitlab/ldap/user.rb
+6
-1
No files found.
lib/gitlab/ldap/user.rb
View file @
91e7692b
...
...
@@ -83,8 +83,13 @@ module Gitlab
private
def
find_by_uid_and_provider
find_by_uid
(
uid
)
end
def
find_by_uid
(
uid
)
model
.
where
(
provider:
provider
,
extern_uid:
uid
).
last
# LDAP distinguished name is case-insensitive
model
.
where
(
"provider = ? and lower(extern_uid) = ?"
,
provider
,
uid
.
downcase
).
last
end
def
provider
...
...
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