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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4077794008cb2889b94d718b13dbe972ad8089e
|
4
|
+
data.tar.gz: f83488bf2b07054fd046cfce4a8a76adeb42e6ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64767dc771409a32f12640f17987cbe43fa4c93bdc0493004fe37f4d4ec4aaa6d12a6d12006f4790d63435403eb2b38b49ec7e8645a2f76aee073cb885411f41
|
7
|
+
data.tar.gz: 7911f199e92b1bbff5d9ac9c59a1ac9ed170cc59c13b02579a0beccb93187c216ddef1e957f3b2aecab05242f0daf6b67d00b3289f9f9e02b0f4d53538959bce
|
data/CHANGELOG.md
CHANGED
@@ -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)
|
data/github-ldap.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "github-ldap"
|
5
|
-
spec.version = "1.8.
|
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
|
-
|
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.
|
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-
|
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.
|
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
|