activeldap 5.1.0 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/doc/text/news.textile +14 -0
- data/lib/active_ldap/operations.rb +3 -0
- data/lib/active_ldap/version.rb +1 -1
- data/test/test_find.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6843a03bb95047e714ba757d90fcc4072508a7cb
|
|
4
|
+
data.tar.gz: e281bb775badcb61da95465dec7c316c51d4bcdf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ef2d625d33324a495fec527ba79b6b1483c21b885404220b5849af56345c1b08a8852d9c56a4df66b8cd230d21f3c6549190060c4978dc897da74fca2a12867
|
|
7
|
+
data.tar.gz: ae643d6b8552d95ed4fe089ba0104bb2347b1f0ed80bfeb2a4901a56e381801008836e640f701c356ecbed5f1a033f84754b78e47ca82611f4be56bc80845221
|
data/doc/text/news.textile
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
h1. News
|
|
2
2
|
|
|
3
|
+
h2(#release-5-1-1). 5.1.1: 2018-01-17
|
|
4
|
+
|
|
5
|
+
h3. Improvements
|
|
6
|
+
|
|
7
|
+
* Added @:include_operational_attributes@ convenient option to
|
|
8
|
+
@ActiveLdap::Base.find@. @ActiveLdap::Base.find(...,
|
|
9
|
+
:include_operational_attributes => true)@ equals to
|
|
10
|
+
@ActiveLdap::Base.find(..., :attributes => ["*", "+"])@.
|
|
11
|
+
[GitHub#150][Reported by jas01]
|
|
12
|
+
|
|
13
|
+
h3. Thanks
|
|
14
|
+
|
|
15
|
+
* jas01
|
|
16
|
+
|
|
3
17
|
h2(#release-5-1-0). 5.1.0: 2017-05-01
|
|
4
18
|
|
|
5
19
|
h3. Improvements
|
|
@@ -291,6 +291,9 @@ module ActiveLdap
|
|
|
291
291
|
offset = options.delete(:offset) || offset
|
|
292
292
|
options[:attributes] = options.delete(:attributes) || ['*']
|
|
293
293
|
options[:attributes] |= ['objectClass']
|
|
294
|
+
if options.delete(:include_operational_attributes)
|
|
295
|
+
options[:attributes] |= ["+"]
|
|
296
|
+
end
|
|
294
297
|
results = search(options).collect do |dn, attrs|
|
|
295
298
|
instantiate([dn, attrs, {:connection => options[:connection]}])
|
|
296
299
|
end
|
data/lib/active_ldap/version.rb
CHANGED
data/test/test_find.rb
CHANGED
|
@@ -63,7 +63,8 @@ class TestFind < Test::Unit::TestCase
|
|
|
63
63
|
|
|
64
64
|
def test_find_operational_attributes
|
|
65
65
|
make_temporary_user do |user, password|
|
|
66
|
-
found_user = @user_class.find(user.uid,
|
|
66
|
+
found_user = @user_class.find(user.uid,
|
|
67
|
+
:include_operational_attributes => true)
|
|
67
68
|
assert_equal(Time.now.utc.iso8601,
|
|
68
69
|
found_user.modify_timestamp.utc.iso8601)
|
|
69
70
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activeldap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.1.
|
|
4
|
+
version: 5.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Will Drewry
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2018-01-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activemodel
|
|
@@ -359,7 +359,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
359
359
|
version: '0'
|
|
360
360
|
requirements: []
|
|
361
361
|
rubyforge_project: ruby-activeldap
|
|
362
|
-
rubygems_version: 2.5.2
|
|
362
|
+
rubygems_version: 2.5.2.2
|
|
363
363
|
signing_key:
|
|
364
364
|
specification_version: 4
|
|
365
365
|
summary: ActiveLdap is a object-oriented API to LDAP
|