active_directory 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/active_directory.gemspec +2 -2
- data/lib/active_directory/base.rb +4 -3
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.5.
|
1
|
+
1.5.3
|
data/active_directory.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{active_directory}
|
8
|
-
s.version = "1.5.
|
8
|
+
s.version = "1.5.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Adam T Kerr"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-04-19}
|
13
13
|
s.description = %q{ActiveDirectory uses Net::LDAP to provide a means of accessing and modifying an Active Directory data store. This is a fork of the activedirectory gem.}
|
14
14
|
s.email = %q{ajrkerr@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -293,7 +293,7 @@ module ActiveDirectory
|
|
293
293
|
|
294
294
|
def self.find_all(options)
|
295
295
|
results = []
|
296
|
-
ldap_objs = @@ldap.search(:filter => options[:filter], :base => options[:in])
|
296
|
+
ldap_objs = @@ldap.search(:filter => options[:filter], :base => options[:in]) || []
|
297
297
|
|
298
298
|
ldap_objs.each do |entry|
|
299
299
|
ad_obj = new(entry)
|
@@ -305,8 +305,9 @@ module ActiveDirectory
|
|
305
305
|
end
|
306
306
|
|
307
307
|
def self.find_first(options)
|
308
|
-
|
309
|
-
|
308
|
+
ldap_result = @@ldap.search(:filter => options[:filter], :base => options[:in])
|
309
|
+
return nil if ldap_result.empty?
|
310
|
+
|
310
311
|
ad_obj = new(ldap_result[0])
|
311
312
|
@@cache[ad_obj.dn] = ad_obj unless ad_obj.instance_of? Base
|
312
313
|
return ad_obj
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_directory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-04-19 00:00:00.000000000 %:z
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: net-ldap
|
17
|
-
requirement: &
|
17
|
+
requirement: &2162426860 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: 0.1.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2162426860
|
26
26
|
description: ActiveDirectory uses Net::LDAP to provide a means of accessing and modifying
|
27
27
|
an Active Directory data store. This is a fork of the activedirectory gem.
|
28
28
|
email: ajrkerr@gmail.com
|