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 +5 -5
- data/lib/ad/record_finder.rb +3 -2
- data/lib/ad/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 37a184f2afe7a7f8da5ba99d8abd8efdc589b0facf81633a26e91f3c532263b3
|
4
|
+
data.tar.gz: fc4cad4797b27069bedcaecdad97e1e7a9bcddce1b536c788b73a8acfe67af48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6094fa74c485888e1166e29c1b814076eb53978e174fa2273f32d95d0d46568a7a554f31fa899730c75ca0ba412f9933b9177c573903467a1b7acdf1ef31221c
|
7
|
+
data.tar.gz: 8b6b521231d5dfdb1adf0291d830945693e752a13b41907e4e35baffd50f58858146e9f9e901698a09864c41dc422fbc0322eff96800964abbaf162ccef61f97
|
data/lib/ad/record_finder.rb
CHANGED
@@ -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
|
data/lib/ad/version.rb
CHANGED
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
|
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-
|
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
|
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
|