gitlab_omniauth-ldap 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f7cc8bb0c5f99051aba734d99dc18701c058864
4
- data.tar.gz: 1f5c864819c98b7be578d17dc2800c985c3bb3a2
3
+ metadata.gz: bfa239bab0965d393691bfb55b586e5d81adfc24
4
+ data.tar.gz: c3467533a4818f774ea858b813db07b660976804
5
5
  SHA512:
6
- metadata.gz: d29979d5ea08ab836f126ce8382dab587c016fc39eaff31fa0429e520dbf6fd15472bd8b020f0bb79c8ba128724d870ee95fc7f768b9b01fbe732813c844b472
7
- data.tar.gz: 11e19cf5d33f69e399f1ad46f80c4af132b89426a623270d4da5564c2951e33c7dbc1e204f6aacdede6a1aa9f2300ce5e98ca0f13a792eceb5c8330d99cf0a0c
6
+ metadata.gz: 83c2b776a29778a1d7714981d44cb0511bd6a636888251f133ab6e744d77845d506fc58d715bad32280d128f8161784aeb5049ad8712badbc2afd0a8882ffd5c
7
+ data.tar.gz: f04e671c5c052f00ca318bedde4dc2c511e722250b89e1f0a07536dd176da19bddbd7fd0a0435ada44c56a51845f8dceb765d422caa77166614962354fb06381
data/.travis.yml CHANGED
@@ -3,4 +3,5 @@ branches:
3
3
  - 'master'
4
4
  rvm:
5
5
  - 2.0.0
6
+ - 2.1.5
6
7
  script: "bundle exec rspec spec"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab_omniauth-ldap (1.2.0)
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.3.1)
15
+ hashie (3.4.0)
16
16
  method_source (0.8.1)
17
- net-ldap (0.9.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.4.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.construct(adaptor.filter % {username: @options[:name_proc].call(request['username'])})
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.eq(adaptor.uid, @options[:name_proc].call(request['username']))
58
+ Net::LDAP::Filter.equals(adaptor.uid, @options[:name_proc].call(request['username']))
58
59
  end
59
60
  end
60
61
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module LDAP
3
- VERSION = "1.2.0"
3
+ VERSION = "1.2.1"
4
4
  end
5
5
  end
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.0
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: 2014-10-29 00:00:00.000000000 Z
11
+ date: 2015-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth