gitlab_omniauth-ldap 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/Gemfile.lock +4 -4
- data/lib/omniauth/strategies/ldap.rb +3 -2
- data/lib/omniauth-ldap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfa239bab0965d393691bfb55b586e5d81adfc24
|
4
|
+
data.tar.gz: c3467533a4818f774ea858b813db07b660976804
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83c2b776a29778a1d7714981d44cb0511bd6a636888251f133ab6e744d77845d506fc58d715bad32280d128f8161784aeb5049ad8712badbc2afd0a8882ffd5c
|
7
|
+
data.tar.gz: f04e671c5c052f00ca318bedde4dc2c511e722250b89e1f0a07536dd176da19bddbd7fd0a0435ada44c56a51845f8dceb765d422caa77166614962354fb06381
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
gitlab_omniauth-ldap (1.2.
|
4
|
+
gitlab_omniauth-ldap (1.2.1)
|
5
5
|
net-ldap (~> 0.9)
|
6
6
|
omniauth (~> 1.0)
|
7
7
|
pyu-ruby-sasl (~> 0.0.3.1)
|
@@ -12,9 +12,9 @@ GEM
|
|
12
12
|
specs:
|
13
13
|
coderay (1.0.8)
|
14
14
|
diff-lcs (1.1.3)
|
15
|
-
hashie (3.
|
15
|
+
hashie (3.4.0)
|
16
16
|
method_source (0.8.1)
|
17
|
-
net-ldap (0.
|
17
|
+
net-ldap (0.11)
|
18
18
|
omniauth (1.2.2)
|
19
19
|
hashie (>= 1.2, < 4)
|
20
20
|
rack (~> 1.0)
|
@@ -35,7 +35,7 @@ GEM
|
|
35
35
|
rspec-expectations (2.12.1)
|
36
36
|
diff-lcs (~> 1.1.3)
|
37
37
|
rspec-mocks (2.12.1)
|
38
|
-
rubyntlm (0.
|
38
|
+
rubyntlm (0.5.0)
|
39
39
|
slop (3.3.3)
|
40
40
|
|
41
41
|
PLATFORMS
|
@@ -52,9 +52,10 @@ module OmniAuth
|
|
52
52
|
|
53
53
|
def filter adaptor
|
54
54
|
if adaptor.filter and !adaptor.filter.empty?
|
55
|
-
Net::LDAP::Filter.
|
55
|
+
username = Net::LDAP::Filter.escape(@options[:name_proc].call(request['username']))
|
56
|
+
Net::LDAP::Filter.construct(adaptor.filter % { username: username })
|
56
57
|
else
|
57
|
-
Net::LDAP::Filter.
|
58
|
+
Net::LDAP::Filter.equals(adaptor.uid, @options[:name_proc].call(request['username']))
|
58
59
|
end
|
59
60
|
end
|
60
61
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab_omniauth-ldap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ping Yu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|