ldap_fluff 0.7.0 → 0.8.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
  SHA256:
3
- metadata.gz: 80bbd37fc8123c1481d81117015acae3ba22aaaf95c6d87ef064c124c7f8f6f0
4
- data.tar.gz: '0899615a301cc6569a3e036b136f27c73a68accf270aa4842b2bf17164bcf2ac'
3
+ metadata.gz: c6a3d7c2ebc986e4ff3738e42f1539a93611fedff9eb399a6fc606f14f11a40a
4
+ data.tar.gz: 9d53b1528ff20d5c44d547b3fc6dec041d3aa6bb6e915d8d7e96186fc77ec04d
5
5
  SHA512:
6
- metadata.gz: c288887b87abb0136d093d61924ddb646234135509cd95bccb4a29c2df149a19855e81eec321cfa3b69a34aeb95934e60c158d088b8a348e7c67d4fb10909334
7
- data.tar.gz: 3ba66326d622afcfa64a15adc8ff87398726d38d775ed46c35ebe5e3b4026c3d01731ffcb8768af01ea5cf5ada903a8c5d246816b99fcfc4e7545a29f409fc79
6
+ metadata.gz: 85a888d7da528bfe2f4f2dfe4dea9793c5adf9812fe054c3467eba3873b9fa838dde18a44844a888beea02bf178b0f2b71b4de3c1d79444e4bf513c2c9c185af
7
+ data.tar.gz: 19076c83f5ef10f0e334f430d9393b2f4bb855bedc1e2a601ccd9e59ead89600957f3469508caee8fb6b04e5a255fad3f17eae068fa41fb732fbc25bfc3eb2c2
@@ -16,14 +16,10 @@ class LdapFluff::Posix::MemberService < LdapFluff::GenericMemberService
16
16
  # return an ldap user with groups attached
17
17
  # note : this method is not particularly fast for large ldap systems
18
18
  def find_user_groups(uid)
19
- groups = []
20
19
  @ldap.search(
21
20
  :filter => Net::LDAP::Filter.eq('memberuid', uid),
22
21
  :base => @group_base, :attributes => ["cn"]
23
- ).each do |entry|
24
- groups << entry[:cn][0]
25
- end
26
- groups
22
+ ).map { |entry| entry[:cn][0] }
27
23
  end
28
24
 
29
25
  class UIDNotFoundException < LdapFluff::Error
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ldap_fluff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan O'Mara
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2024-05-07 00:00:00.000000000 Z
16
+ date: 2024-10-18 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: activesupport
@@ -24,7 +24,7 @@ dependencies:
24
24
  version: '5'
25
25
  - - "<"
26
26
  - !ruby/object:Gem::Version
27
- version: '7'
27
+ version: '8'
28
28
  type: :runtime
29
29
  prerelease: false
30
30
  version_requirements: !ruby/object:Gem::Requirement
@@ -34,7 +34,7 @@ dependencies:
34
34
  version: '5'
35
35
  - - "<"
36
36
  - !ruby/object:Gem::Version
37
- version: '7'
37
+ version: '8'
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: net-ldap
40
40
  requirement: !ruby/object:Gem::Requirement