BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
325b6636
Commit
325b6636
authored
Apr 13, 2015
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove special cases for the 'ldap' provider
parent
896ea248
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
config.rb
lib/gitlab/ldap/config.rb
+0
-2
user.rb
lib/gitlab/ldap/user.rb
+1
-1
No files found.
lib/gitlab/ldap/config.rb
View file @
325b6636
...
...
@@ -27,8 +27,6 @@ module Gitlab
def
initialize
(
provider
)
if
self
.
class
.
valid_provider?
(
provider
)
@provider
=
provider
elsif
provider
==
'ldap'
@provider
=
self
.
class
.
providers
.
first
else
self
.
class
.
invalid_provider
(
provider
)
end
...
...
lib/gitlab/ldap/user.rb
View file @
325b6636
...
...
@@ -13,7 +13,7 @@ module Gitlab
def
find_by_uid_and_provider
(
uid
,
provider
)
# LDAP distinguished name is case-insensitive
identity
=
::
Identity
.
where
(
provider:
[
provider
,
:ldap
]
).
where
(
provider:
provider
).
where
(
'lower(extern_uid) = ?'
,
uid
.
downcase
).
last
identity
&&
identity
.
user
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