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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e986ac6ae6b5a7ef3fa46acd0cba75ea50fcea73
4
- data.tar.gz: 967e36cea4f0fdcbeaec12e8191e00bdffdc8976
3
+ metadata.gz: f83eab8265b4b37803e067e1309265ec477ae49b
4
+ data.tar.gz: 556b6ba805d90d6e0323dd574c9744c14a2fa288
5
5
  SHA512:
6
- metadata.gz: c394f00e5269767de53bdca4668b31a9de715e09382a63f5bacb4aa0a099c48d500985327f22a95a17687b2bdb5a4cc0715290082403afad286feb11f815bc6b
7
- data.tar.gz: 23d5349dfa67d42cc8faf029db21b9a2c1c1f1617ebffa8b5c7d7bd6303194ffef9bc883d933277d86cc82b5b0e718aa0e6f548fe87b5df4aebb25402b6ab4f7
6
+ metadata.gz: f0008db3d38299ef4bb40a19a747dad1a03c2d0b36ccdc3959ccbf1904eb2d7a1a13344b9f1eb93564aad739058840099b0cbf9be3cbf10717392e012700871d
7
+ data.tar.gz: adc5476ba9e07bb4a4dfe93b99b4e7a708eb784758ba32ddd0e0519e78ec1baa01002a2684f75015620d4bf9cef06c6d5cbd78511a8baba6da86f8638baf5cee
data/.gitignore CHANGED
@@ -1,3 +1,5 @@
1
+ config
2
+
1
3
  Gemfile.lock
2
4
  .ruby-version
3
5
  .ruby-gemset
@@ -8,3 +10,4 @@ doc/
8
10
 
9
11
  # temporary files
10
12
  *.swp
13
+ *.gem
@@ -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? 'OU=Groups'
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)
@@ -1,5 +1,5 @@
1
1
  # Gem version release tracking
2
2
  module LDAPGroupsLookup
3
3
  # Define release version
4
- VERSION = '0.4.3'.freeze
4
+ VERSION = '0.5.0'.freeze
5
5
  end
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.3
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-06-19 00:00:00.000000000 Z
13
+ date: 2018-07-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: net-ldap