ad 1.0.1 → 1.1.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
- SHA1:
3
- metadata.gz: bcdb2e972ffaa5e7c0f632a67c9ec7af92779b70
4
- data.tar.gz: 11e6905669f8e80ee78eeb254ff27b4a66cf7e85
2
+ SHA256:
3
+ metadata.gz: 37a184f2afe7a7f8da5ba99d8abd8efdc589b0facf81633a26e91f3c532263b3
4
+ data.tar.gz: fc4cad4797b27069bedcaecdad97e1e7a9bcddce1b536c788b73a8acfe67af48
5
5
  SHA512:
6
- metadata.gz: 05a306d8d14c6c2093c10dd6b89066fac4b53722d4492bdbfeb1ccb4b109d92907ac33bc06c3ecba35d55d9c2f944e3c74744dfc9e498b9b3de61d9f522b1c13
7
- data.tar.gz: '084fd26f02846bccc667bc17057463ccc819f389e58e52c9709e17401d98133b034e8705eb65cc5f5729d463bb050c833d9979dfbb0baa1d46cb1b68df169e8c'
6
+ metadata.gz: 6094fa74c485888e1166e29c1b814076eb53978e174fa2273f32d95d0d46568a7a554f31fa899730c75ca0ba412f9933b9177c573903467a1b7acdf1ef31221c
7
+ data.tar.gz: 8b6b521231d5dfdb1adf0291d830945693e752a13b41907e4e35baffd50f58858146e9f9e901698a09864c41dc422fbc0322eff96800964abbaf162ccef61f97
@@ -8,10 +8,11 @@ module AD
8
8
 
9
9
  attr_reader :connection, :result
10
10
 
11
- def find_by_id(query)
11
+ def find_by_id(query, attributes: [])
12
12
  @result = @connection.search(
13
13
  base: AD.base_dn,
14
- filter: Net::LDAP::Filter.eq(AD.unique_id_attr, query.to_s)
14
+ filter: Net::LDAP::Filter.eq(AD.unique_id_attr, query.to_s),
15
+ attributes: attributes
15
16
  )
16
17
  end
17
18
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AD
4
- VERSION = "1.0.1"
4
+ VERSION = "1.1.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ad
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krists Ozols
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-07 00:00:00.000000000 Z
11
+ date: 2018-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ldap
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  requirements: []
142
142
  rubyforge_project:
143
- rubygems_version: 2.6.11
143
+ rubygems_version: 2.7.6
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: A wrapper around Ruby's net-ldap library to ease authentication and record