datacom_active_directory 1.5.6.datacom → 1.5.7.datacom
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_directory/version.rb +1 -1
- metadata +7 -11
- data/.gitignore +0 -2
- data/README.md +0 -45
- data/Rakefile +0 -20
- data/active_directory.gemspec +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc9c31d992b09d56292129e12ee1ab8613bb7d79
|
4
|
+
data.tar.gz: 52fb7549a4e6011aa014098edb0cc9e3dea1e88a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e22877fb65f76761bd38dc4c035a5632fe90986f0642545663c0dc48f378cc3d5c6197bcf415d9cc2a0f7492a1d1a72095c99bc9b818ff052722b93a3e6a3186
|
7
|
+
data.tar.gz: a09430d9450a467c6b70ea62a9abcc2544e554b5d93352a2a28fc54dc33251c6d8514bccaf5ac5cd15e6cd77ff5fce2fd1bafc4bbe8f3edab7d1137b282c9745
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datacom_active_directory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.7.datacom
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brad Murray
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03
|
11
|
+
date: 2014-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: datacom-net-ldap
|
@@ -24,19 +24,15 @@ dependencies:
|
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.5.0.datacom
|
27
|
-
description:
|
27
|
+
description: " Datacom NZ fork of ActiveDirectory. Uses Net::LDAP to provide a means
|
28
28
|
of accessing and modifying an Active Directory data store. This is a fork of the
|
29
|
-
activedirectory gem.
|
29
|
+
activedirectory gem."
|
30
30
|
email:
|
31
31
|
- wyaeld@gmail.com
|
32
32
|
executables: []
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
-
- .gitignore
|
37
|
-
- README.md
|
38
|
-
- Rakefile
|
39
|
-
- active_directory.gemspec
|
40
36
|
- lib/active_directory.rb
|
41
37
|
- lib/active_directory/base.rb
|
42
38
|
- lib/active_directory/computer.rb
|
@@ -62,17 +58,17 @@ require_paths:
|
|
62
58
|
- lib
|
63
59
|
required_ruby_version: !ruby/object:Gem::Requirement
|
64
60
|
requirements:
|
65
|
-
- -
|
61
|
+
- - ">="
|
66
62
|
- !ruby/object:Gem::Version
|
67
63
|
version: '0'
|
68
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
65
|
requirements:
|
70
|
-
- -
|
66
|
+
- - ">"
|
71
67
|
- !ruby/object:Gem::Version
|
72
68
|
version: 1.3.1
|
73
69
|
requirements: []
|
74
70
|
rubyforge_project:
|
75
|
-
rubygems_version: 2.
|
71
|
+
rubygems_version: 2.2.2
|
76
72
|
signing_key:
|
77
73
|
specification_version: 4
|
78
74
|
summary: An interface library for accessing Microsoft's Active Directory.
|
data/.gitignore
DELETED
data/README.md
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
**Forked on Datacom account in order to tag it to a fixed point - Brad Murray**
|
2
|
-
|
3
|
-
= Active Directory
|
4
|
-
|
5
|
-
Ruby Integration with Microsoft's Active Directory system based on original code by Justin Mecham and James Hunt at http://rubyforge.org/projects/activedirectory
|
6
|
-
|
7
|
-
See documentation on ActiveDirectory::Base for more information.
|
8
|
-
|
9
|
-
Caching:
|
10
|
-
Queries for membership and group membership are based on the distinguished name of objects. Doing a lot of queries, especially for a Rails app, is a sizable slowdown. To alleviate the problem, I've implemented a very basic cache for queries which search by :distinguishedname. This is disabled by default. All other queries are unaffected.
|
11
|
-
|
12
|
-
|
13
|
-
A code example is worth a thousand words:
|
14
|
-
|
15
|
-
<pre>
|
16
|
-
require 'rubygems'
|
17
|
-
require 'active_directory'
|
18
|
-
|
19
|
-
# Uses the same settings as net/ldap
|
20
|
-
settings = {
|
21
|
-
:host => 'domain-controller.example.local',
|
22
|
-
:base => 'dc=example,dc=local',
|
23
|
-
:port => 636,
|
24
|
-
:encryption => :simple_tls,
|
25
|
-
:auth => {
|
26
|
-
:method => :simple,
|
27
|
-
:username => "username",
|
28
|
-
:password => "password"
|
29
|
-
}
|
30
|
-
}
|
31
|
-
|
32
|
-
# Basic usage
|
33
|
-
ActiveDirectory::Base.setup(settings)
|
34
|
-
|
35
|
-
ActiveDirectory::User.find(:all)
|
36
|
-
ActiveDirectory::User.find(:first, :userprincipalname => "john.smith@domain.com")
|
37
|
-
|
38
|
-
ActiveDirectory::Group.find(:all)
|
39
|
-
|
40
|
-
#Caching is disabled by default, to enable:
|
41
|
-
ActiveDirectory::Base.enable_cache
|
42
|
-
ActiveDirectory::Base.disable_cache
|
43
|
-
ActiveDirectory::Base.cache?
|
44
|
-
|
45
|
-
</pre>
|
data/Rakefile
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
require 'psych'
|
2
|
-
|
3
|
-
begin
|
4
|
-
require 'jeweler'
|
5
|
-
Jeweler::Tasks.new do |gem|
|
6
|
-
gem.name = "active_directory"
|
7
|
-
gem.summary = "An interface library for accessing Microsoft's Active Directory."
|
8
|
-
gem.description = "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."
|
9
|
-
gem.author = "Adam T Kerr"
|
10
|
-
gem.email = "ajrkerr@gmail.com"
|
11
|
-
gem.homepage = "http://github.com/ajrkerr/active_directory"
|
12
|
-
|
13
|
-
# gem.files = FileList["lib/**/*.rb"]
|
14
|
-
# gem.require_path = "lib"
|
15
|
-
gem.add_dependency 'net-ldap', '>= 0.1.1'
|
16
|
-
end
|
17
|
-
Jeweler::GemcutterTasks.new
|
18
|
-
rescue LoadError
|
19
|
-
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
20
|
-
end
|
data/active_directory.gemspec
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'active_directory/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = 'datacom_active_directory'
|
8
|
-
spec.version = ActiveDirectory::VERSION
|
9
|
-
spec.authors = ["Brad Murray"]
|
10
|
-
spec.email = ["wyaeld@gmail.com"]
|
11
|
-
spec.description = %q{ Datacom NZ fork of 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.}
|
12
|
-
spec.summary = %q{An interface library for accessing Microsoft's Active Directory.}
|
13
|
-
spec.homepage = %q{http://github.com/datacom/active_directory}
|
14
|
-
|
15
|
-
spec.files = `git ls-files`.split($/)
|
16
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
-
spec.require_paths = ["lib"]
|
19
|
-
|
20
|
-
spec.add_dependency "datacom-net-ldap", '0.5.0.datacom'
|
21
|
-
end
|
22
|
-
|