github-ldap 1.8.1 → 1.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5cd689cc9f69b76bfd93b487b40b185db327824
4
- data.tar.gz: 4bec71377bdd27834c47d03da41ea2ace5ab5401
3
+ metadata.gz: c4077794008cb2889b94d718b13dbe972ad8089e
4
+ data.tar.gz: f83488bf2b07054fd046cfce4a8a76adeb42e6ca
5
5
  SHA512:
6
- metadata.gz: 81d82d344123377a37bad188f515e6c3b0dd7cdf2287909026d5685c80110ac94225244ac960e23656f23832dc38d26e127461607ea1f7c50857fc69f028963f
7
- data.tar.gz: a6d1497b2c7f7b47901864be7ef1d35ba78815ff8e3b66b1d9dd3d4377705bccf998227ab8170d05e344af89a4ed5e4cc4b4266d14fc77813a734e8de347fbaf
6
+ metadata.gz: 64767dc771409a32f12640f17987cbe43fa4c93bdc0493004fe37f4d4ec4aaa6d12a6d12006f4790d63435403eb2b38b49ec7e8645a2f76aee073cb885411f41
7
+ data.tar.gz: 7911f199e92b1bbff5d9ac9c59a1ac9ed170cc59c13b02579a0beccb93187c216ddef1e957f3b2aecab05242f0daf6b67d00b3289f9f9e02b0f4d53538959bce
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ # v1.8.2
4
+
5
+ * Ignore case when comparing ActiveDirectory DNs [#82](https://github.com/github/github-ldap/pull/82)
6
+
3
7
  # v1.8.1
4
8
 
5
9
  * Expand supported ActiveDirectory capabilities to include Windows Server 2003 [#80](https://github.com/github/github-ldap/pull/80)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "github-ldap"
5
- spec.version = "1.8.1"
5
+ spec.version = "1.8.2"
6
6
  spec.authors = ["David Calavera", "Matt Todd"]
7
7
  spec.email = ["david.calavera@gmail.com", "chiology@gmail.com"]
8
8
  spec.description = %q{LDAP authentication for humans}
@@ -31,7 +31,8 @@ module GitHub
31
31
  attributes: ATTRS
32
32
 
33
33
  # membership validated if entry was matched and returned as a result
34
- matched.map(&:dn).include?(entry.dn)
34
+ # Active Directory DNs are case-insensitive
35
+ matched.map { |m| m.dn.downcase }.include?(entry.dn.downcase)
35
36
  end
36
37
 
37
38
  # Internal: Constructs a membership filter using the "in chain"
@@ -123,4 +123,13 @@ class GitHubLdapActiveDirectoryMembershipValidatorsIntegrationTest < GitHub::Lda
123
123
  validator = make_validator(%w(posix-group1))
124
124
  assert validator.perform(@entry)
125
125
  end
126
+
127
+ def test_validates_user_in_group_with_differently_cased_dn
128
+ validator = make_validator(%w(all-users))
129
+ @entry[:dn].map(&:upcase!)
130
+ assert validator.perform(@entry)
131
+
132
+ @entry[:dn].map(&:downcase!)
133
+ assert validator.perform(@entry)
134
+ end
126
135
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-ldap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.1
4
+ version: 1.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Calavera
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-02 00:00:00.000000000 Z
12
+ date: 2015-05-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-ldap
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  version: '0'
167
167
  requirements: []
168
168
  rubyforge_project:
169
- rubygems_version: 2.2.2
169
+ rubygems_version: 2.2.3
170
170
  signing_key:
171
171
  specification_version: 4
172
172
  summary: LDAP client authentication wrapper without all the boilerplate