github-ldap 1.8.0 → 1.8.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/github-ldap.gemspec +1 -1
- data/lib/github/ldap.rb +2 -2
- data/test/ldap_test.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: d5cd689cc9f69b76bfd93b487b40b185db327824
|
|
4
|
+
data.tar.gz: 4bec71377bdd27834c47d03da41ea2ace5ab5401
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81d82d344123377a37bad188f515e6c3b0dd7cdf2287909026d5685c80110ac94225244ac960e23656f23832dc38d26e127461607ea1f7c50857fc69f028963f
|
|
7
|
+
data.tar.gz: a6d1497b2c7f7b47901864be7ef1d35ba78815ff8e3b66b1d9dd3d4377705bccf998227ab8170d05e344af89a4ed5e4cc4b4266d14fc77813a734e8de347fbaf
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
# v1.8.1
|
|
4
|
+
|
|
5
|
+
* Expand supported ActiveDirectory capabilities to include Windows Server 2003 [#80](https://github.com/github/github-ldap/pull/80)
|
|
6
|
+
|
|
3
7
|
# v1.8.0
|
|
4
8
|
|
|
5
9
|
* Optimize Recursive *Member Search* strategy [#78](https://github.com/github/github-ldap/pull/78)
|
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.1"
|
|
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}
|
data/lib/github/ldap.rb
CHANGED
|
@@ -19,7 +19,7 @@ module GitHub
|
|
|
19
19
|
|
|
20
20
|
# Internal: The capability required to use ActiveDirectory features.
|
|
21
21
|
# See: http://msdn.microsoft.com/en-us/library/cc223359.aspx.
|
|
22
|
-
|
|
22
|
+
ACTIVE_DIRECTORY_V51_OID = "1.2.840.113556.1.4.1670".freeze
|
|
23
23
|
|
|
24
24
|
# Utility method to get the last operation result with a human friendly message.
|
|
25
25
|
#
|
|
@@ -313,7 +313,7 @@ module GitHub
|
|
|
313
313
|
#
|
|
314
314
|
# Returns true if the host is an ActiveDirectory server, false otherwise.
|
|
315
315
|
def active_directory_capability?
|
|
316
|
-
capabilities[:supportedcapabilities].include?(
|
|
316
|
+
capabilities[:supportedcapabilities].include?(ACTIVE_DIRECTORY_V51_OID)
|
|
317
317
|
end
|
|
318
318
|
private :active_directory_capability?
|
|
319
319
|
end
|
data/test/ldap_test.rb
CHANGED
|
@@ -80,7 +80,7 @@ module GitHubLdapTestCases
|
|
|
80
80
|
|
|
81
81
|
def test_search_strategy_detects_active_directory
|
|
82
82
|
caps = Net::LDAP::Entry.new
|
|
83
|
-
caps[:supportedcapabilities] = [GitHub::Ldap::
|
|
83
|
+
caps[:supportedcapabilities] = [GitHub::Ldap::ACTIVE_DIRECTORY_V51_OID]
|
|
84
84
|
|
|
85
85
|
@ldap.stub :capabilities, caps do
|
|
86
86
|
@ldap.configure_search_strategy :detect
|
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.1
|
|
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-02-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: net-ldap
|