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
0d5ae280
Commit
0d5ae280
authored
Aug 29, 2014
by
Jan-Willem van der Meer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move and rename ldap / oauth specs
parent
97547428
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
2 deletions
+3
-2
lib/gitlab/ldap/adapter.rb
lib/gitlab/ldap/adapter.rb
+2
-1
spec/lib/gitlab/auth_spec.rb
spec/lib/gitlab/auth_spec.rb
+0
-0
spec/lib/gitlab/ldap/user_spec.rb
spec/lib/gitlab/ldap/user_spec.rb
+1
-1
spec/lib/gitlab/oauth/user_spec.rb
spec/lib/gitlab/oauth/user_spec.rb
+0
-0
No files found.
lib/gitlab/ldap/adapter.rb
View file @
0d5ae280
...
@@ -86,7 +86,8 @@ module Gitlab
...
@@ -86,7 +86,8 @@ module Gitlab
end
end
def
dn_matches_filter?
(
dn
,
filter
)
def
dn_matches_filter?
(
dn
,
filter
)
ldap_search
(
base:
dn
,
filter:
filter
,
scope:
Net
::
LDAP
::
SearchScope_BaseObject
,
attributes:
%w{dn}
).
any?
ldap_search
(
base:
dn
,
filter:
filter
,
scope:
Net
::
LDAP
::
SearchScope_BaseObject
,
attributes:
%w{dn}
).
any?
end
end
def
ldap_search
(
*
args
)
def
ldap_search
(
*
args
)
...
...
spec/lib/auth_spec.rb
→
spec/lib/
gitlab/
auth_spec.rb
View file @
0d5ae280
File moved
spec/lib/gitlab/ldap/user_spec.rb
View file @
0d5ae280
require
'spec_helper'
require
'spec_helper'
describe
Gitlab
::
LDAP
do
describe
Gitlab
::
LDAP
::
User
do
let
(
:gl_auth
)
{
Gitlab
::
LDAP
::
User
}
let
(
:gl_auth
)
{
Gitlab
::
LDAP
::
User
}
before
do
before
do
...
...
spec/lib/
oauth
_spec.rb
→
spec/lib/
gitlab/oauth/user
_spec.rb
View file @
0d5ae280
File moved
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