ldap_groups_lookup 0.4.3 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/lib/ldap_groups_lookup/configuration.rb +2 -1
- data/lib/ldap_groups_lookup/search.rb +1 -1
- data/lib/ldap_groups_lookup/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: f83eab8265b4b37803e067e1309265ec477ae49b
|
4
|
+
data.tar.gz: 556b6ba805d90d6e0323dd574c9744c14a2fa288
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0008db3d38299ef4bb40a19a747dad1a03c2d0b36ccdc3959ccbf1904eb2d7a1a13344b9f1eb93564aad739058840099b0cbf9be3cbf10717392e012700871d
|
7
|
+
data.tar.gz: adc5476ba9e07bb4a4dfe93b99b4e7a708eb784758ba32ddd0e0519e78ec1baa01002a2684f75015620d4bf9cef06c6d5cbd78511a8baba6da86f8638baf5cee
|
data/.gitignore
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'yaml'
|
2
|
+
require 'erb'
|
2
3
|
|
3
4
|
# Provides access to the configuration YAML file.
|
4
5
|
module LDAPGroupsLookup
|
@@ -20,7 +21,7 @@ module LDAPGroupsLookup
|
|
20
21
|
if defined? Rails
|
21
22
|
configure(Rails.root.join('config', 'ldap_groups_lookup.yml').to_s)
|
22
23
|
else
|
23
|
-
configure(File.join(__dir__, 'config', 'ldap_groups_lookup.yml').to_s)
|
24
|
+
configure(File.join(__dir__, '..', '..', 'config', 'ldap_groups_lookup.yml').to_s)
|
24
25
|
end
|
25
26
|
end
|
26
27
|
@config
|
@@ -50,7 +50,7 @@ module LDAPGroupsLookup
|
|
50
50
|
next if seen.include? g
|
51
51
|
seen << g
|
52
52
|
member_groups = members.collect do |mg|
|
53
|
-
dn_to_cn(mg) if mg.include?
|
53
|
+
dn_to_cn(mg) if (mg.include?('OU=Groups') || mg.include?('OU=Applications'))
|
54
54
|
end
|
55
55
|
member_groups.compact!
|
56
56
|
return true if walk_ldap_members(member_groups, dn, seen)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ldap_groups_lookup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Ploshay
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-07-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: net-ldap
|