activesambaldap 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS.en +10 -1
- data/NEWS.ja +10 -1
- data/README.en +10 -3
- data/README.ja +10 -3
- data/Rakefile +3 -4
- data/data/locale/ja/LC_MESSAGES/active-samba-ldap.mo +0 -0
- data/example/asl-admin/README +243 -0
- data/example/asl-admin/Rakefile +10 -0
- data/example/asl-admin/app/controllers/application_controller.rb +10 -0
- data/example/asl-admin/app/controllers/samba_controller.rb +12 -0
- data/example/asl-admin/app/helpers/application_helper.rb +3 -0
- data/example/asl-admin/app/helpers/samba_helper.rb +2 -0
- data/example/asl-admin/app/models/computer.rb +3 -0
- data/example/asl-admin/app/models/dc.rb +3 -0
- data/example/asl-admin/app/models/group.rb +3 -0
- data/example/asl-admin/app/models/idmap.rb +3 -0
- data/example/asl-admin/app/models/ou.rb +3 -0
- data/example/asl-admin/app/models/unix_id_pool.rb +3 -0
- data/example/asl-admin/app/models/user.rb +3 -0
- data/example/asl-admin/app/views/samba/index.html.erb +17 -0
- data/example/asl-admin/app/views/samba/populate.html.erb +15 -0
- data/example/asl-admin/app/views/samba/purge.html.erb +10 -0
- data/example/asl-admin/config/boot.rb +110 -0
- data/example/asl-admin/config/database.yml +22 -0
- data/example/asl-admin/config/environment.rb +48 -0
- data/example/asl-admin/config/environments/development.rb +17 -0
- data/example/asl-admin/config/environments/production.rb +28 -0
- data/example/asl-admin/config/environments/test.rb +28 -0
- data/example/asl-admin/config/initializers/backtrace_silencers.rb +7 -0
- data/example/asl-admin/config/initializers/inflections.rb +10 -0
- data/example/asl-admin/config/initializers/mime_types.rb +5 -0
- data/example/asl-admin/config/initializers/new_rails_defaults.rb +19 -0
- data/example/asl-admin/config/initializers/session_store.rb +15 -0
- data/example/asl-admin/config/ldap.yml.sample +24 -0
- data/example/asl-admin/config/locales/en.yml +5 -0
- data/example/asl-admin/config/routes.rb +43 -0
- data/example/asl-admin/log/test.log +5 -0
- data/example/asl-admin/public/404.html +30 -0
- data/example/asl-admin/public/422.html +30 -0
- data/example/asl-admin/public/500.html +30 -0
- data/example/asl-admin/public/favicon.ico +0 -0
- data/example/asl-admin/public/images/rails.png +0 -0
- data/example/asl-admin/public/index.html +275 -0
- data/example/asl-admin/public/javascripts/application.js +2 -0
- data/example/asl-admin/public/javascripts/controls.js +963 -0
- data/example/asl-admin/public/javascripts/dragdrop.js +973 -0
- data/example/asl-admin/public/javascripts/effects.js +1128 -0
- data/example/asl-admin/public/javascripts/prototype.js +4320 -0
- data/example/asl-admin/public/robots.txt +5 -0
- data/example/asl-admin/script/about +4 -0
- data/example/asl-admin/script/console +3 -0
- data/example/asl-admin/script/dbconsole +3 -0
- data/example/asl-admin/script/destroy +3 -0
- data/example/asl-admin/script/generate +3 -0
- data/example/asl-admin/script/performance/benchmarker +3 -0
- data/example/asl-admin/script/performance/profiler +3 -0
- data/example/asl-admin/script/plugin +3 -0
- data/example/asl-admin/script/runner +3 -0
- data/example/asl-admin/script/server +3 -0
- data/example/asl-admin/test/performance/browsing_test.rb +9 -0
- data/example/asl-admin/test/test_helper.rb +38 -0
- data/lib/active_samba_ldap.rb +1 -1
- data/lib/active_samba_ldap/account_entry.rb +17 -9
- data/lib/active_samba_ldap/active_directory.rb +66 -0
- data/lib/active_samba_ldap/base.rb +8 -0
- data/lib/active_samba_ldap/computer.rb +1 -0
- data/lib/active_samba_ldap/configuration.rb +32 -4
- data/lib/active_samba_ldap/entry.rb +48 -0
- data/lib/active_samba_ldap/group_entry.rb +8 -8
- data/lib/active_samba_ldap/populate.rb +1 -0
- data/lib/active_samba_ldap/samba_account_entry.rb +31 -14
- data/lib/active_samba_ldap/samba_computer_account_entry.rb +18 -0
- data/lib/active_samba_ldap/samba_entry.rb +6 -5
- data/lib/active_samba_ldap/samba_group_entry.rb +22 -13
- data/lib/active_samba_ldap/version.rb +1 -1
- data/po/active-samba-ldap.pot +463 -0
- data/po/ja/active-samba-ldap.po +15 -11
- data/rails/init.rb +1 -18
- data/rails_generators/scaffold_active_samba_ldap/scaffold_active_samba_ldap_generator.rb +4 -3
- data/rails_generators/scaffold_active_samba_ldap/templates/computer.rb +1 -1
- data/rails_generators/scaffold_active_samba_ldap/templates/group.rb +1 -1
- data/rails_generators/scaffold_active_samba_ldap/templates/{samba_index.rhtml → samba_index.html.erb} +0 -0
- data/rails_generators/scaffold_active_samba_ldap/templates/{samba_populate.rhtml → samba_populate.html.erb} +0 -0
- data/rails_generators/scaffold_active_samba_ldap/templates/{samba_purge.rhtml → samba_purge.html.erb} +0 -0
- data/rails_generators/scaffold_active_samba_ldap/templates/user.rb +1 -1
- data/test-unit/History.txt +1 -1
- data/test-unit/README.txt +1 -1
- data/test-unit/lib/test/unit/assertions.rb +1 -1
- data/test-unit/lib/test/unit/autorunner.rb +19 -4
- data/test-unit/lib/test/unit/collector/load.rb +3 -1
- data/test-unit/lib/test/unit/color-scheme.rb +5 -1
- data/test-unit/lib/test/unit/error.rb +7 -5
- data/test-unit/lib/test/unit/runner/tap.rb +8 -0
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +63 -8
- data/test-unit/lib/test/unit/ui/tap/testrunner.rb +92 -0
- data/test-unit/test/collector/test-load.rb +1 -5
- data/test-unit/test/test-color-scheme.rb +4 -0
- data/test/command.rb +8 -3
- data/test/run-test.rb +4 -1
- data/test/test_asl_useradd.rb +2 -2
- metadata +81 -20
@@ -240,11 +240,7 @@ EOT
|
|
240
240
|
[:test, {:name => "test1_2"}]]],
|
241
241
|
@test_case1.to_s)
|
242
242
|
|
243
|
-
assert_collect(
|
244
|
-
[:suite, {:name => _test_case_name("NoLoadSubTestCase5")},
|
245
|
-
[:test, {:name => "test5_1"}],
|
246
|
-
[:test, {:name => "test5_2"}]]],
|
247
|
-
@no_load_sub_test_case5.to_s)
|
243
|
+
assert_collect(nil, @no_load_sub_test_case5.to_s)
|
248
244
|
end
|
249
245
|
|
250
246
|
def test_nil_pattern
|
@@ -8,6 +8,10 @@ class TestUnitColorScheme < Test::Unit::TestCase
|
|
8
8
|
"notification" => color("cyan", :bold => true),
|
9
9
|
"error" => color("yellow", :bold => true) +
|
10
10
|
color("black", :foreground => false),
|
11
|
+
"case" => color("white", :bold => true) +
|
12
|
+
color("blue", :foreground => false),
|
13
|
+
"suite" => color("white", :bold => true) +
|
14
|
+
color("green", :foreground => false),
|
11
15
|
},
|
12
16
|
Test::Unit::ColorScheme.default.to_hash)
|
13
17
|
end
|
data/test/command.rb
CHANGED
@@ -59,9 +59,14 @@ module Command
|
|
59
59
|
in_r.close unless in_r.closed?
|
60
60
|
out_w.close unless out_w.closed?
|
61
61
|
err_w.close unless err_w.closed?
|
62
|
-
|
63
|
-
|
64
|
-
|
62
|
+
begin
|
63
|
+
Timeout.timeout(10) do
|
64
|
+
pid, status = Process.waitpid2(pid)
|
65
|
+
[status.exited? && status.exitstatus.zero?, out_r.read, err_r.read]
|
66
|
+
end
|
67
|
+
rescue Timeout::Error
|
68
|
+
Process.kill(:KILL, pid)
|
69
|
+
[false, out_r.read, err_r.read, "killed"]
|
65
70
|
end
|
66
71
|
end
|
67
72
|
end
|
data/test/run-test.rb
CHANGED
@@ -17,4 +17,7 @@ $LOAD_PATH.unshift(File.join(top_dir, "test"))
|
|
17
17
|
|
18
18
|
ARGV.unshift("--priority")
|
19
19
|
|
20
|
-
|
20
|
+
require 'timeout'
|
21
|
+
Test::Unit::ErrorHandler::NOT_PASS_THROUGH_EXCEPTIONS << Timeout::Error
|
22
|
+
|
23
|
+
exit Test::Unit::AutoRunner.run(true, File.join(top_dir, "test"))
|
data/test/test_asl_useradd.rb
CHANGED
@@ -67,7 +67,7 @@ class AslUserAddTest < Test::Unit::TestCase
|
|
67
67
|
assert(user_class.exists?(uid))
|
68
68
|
|
69
69
|
user = user_class.find(uid)
|
70
|
-
assert_match(/\Auid=#{uid},ou=#{ou},/, user.dn)
|
70
|
+
assert_match(/\Auid=#{uid},ou=#{ou},/, user.dn.to_s)
|
71
71
|
end
|
72
72
|
|
73
73
|
assert(ou_class.exists?(ou))
|
@@ -91,7 +91,7 @@ class AslUserAddTest < Test::Unit::TestCase
|
|
91
91
|
assert(computer_class.exists?(uid))
|
92
92
|
|
93
93
|
computer = computer_class.find(uid)
|
94
|
-
assert_match(/\Auid=#{Regexp.escape(uid)},ou=#{ou},/, computer.dn)
|
94
|
+
assert_match(/\Auid=#{Regexp.escape(uid)},ou=#{ou},/, computer.dn.to_s)
|
95
95
|
end
|
96
96
|
|
97
97
|
assert(ou_class.exists?(ou))
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activesambaldap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-09-22 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 1.
|
23
|
+
version: 1.2.0
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: hoe
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.3.
|
33
|
+
version: 2.3.3
|
34
34
|
version:
|
35
35
|
description: |
|
36
36
|
ActiveSambaLdap provides object-oriented API to manipulate
|
@@ -61,6 +61,7 @@ executables:
|
|
61
61
|
extensions: []
|
62
62
|
|
63
63
|
extra_rdoc_files:
|
64
|
+
- example/asl-admin/public/robots.txt
|
64
65
|
- bin/asl-groupadd.help
|
65
66
|
- bin/asl-groupdel.help
|
66
67
|
- bin/asl-groupmod.help
|
@@ -108,8 +109,64 @@ files:
|
|
108
109
|
- bin/asl-usermod
|
109
110
|
- bin/asl-usershow
|
110
111
|
- data/locale/ja/LC_MESSAGES/active-samba-ldap.mo
|
112
|
+
- example/asl-admin/README
|
113
|
+
- example/asl-admin/Rakefile
|
114
|
+
- example/asl-admin/app/controllers/application_controller.rb
|
115
|
+
- example/asl-admin/app/controllers/samba_controller.rb
|
116
|
+
- example/asl-admin/app/helpers/application_helper.rb
|
117
|
+
- example/asl-admin/app/helpers/samba_helper.rb
|
118
|
+
- example/asl-admin/app/models/computer.rb
|
119
|
+
- example/asl-admin/app/models/dc.rb
|
120
|
+
- example/asl-admin/app/models/group.rb
|
121
|
+
- example/asl-admin/app/models/idmap.rb
|
122
|
+
- example/asl-admin/app/models/ou.rb
|
123
|
+
- example/asl-admin/app/models/unix_id_pool.rb
|
124
|
+
- example/asl-admin/app/models/user.rb
|
125
|
+
- example/asl-admin/app/views/samba/index.html.erb
|
126
|
+
- example/asl-admin/app/views/samba/populate.html.erb
|
127
|
+
- example/asl-admin/app/views/samba/purge.html.erb
|
128
|
+
- example/asl-admin/config/boot.rb
|
129
|
+
- example/asl-admin/config/database.yml
|
130
|
+
- example/asl-admin/config/environment.rb
|
131
|
+
- example/asl-admin/config/environments/development.rb
|
132
|
+
- example/asl-admin/config/environments/production.rb
|
133
|
+
- example/asl-admin/config/environments/test.rb
|
134
|
+
- example/asl-admin/config/initializers/backtrace_silencers.rb
|
135
|
+
- example/asl-admin/config/initializers/inflections.rb
|
136
|
+
- example/asl-admin/config/initializers/mime_types.rb
|
137
|
+
- example/asl-admin/config/initializers/new_rails_defaults.rb
|
138
|
+
- example/asl-admin/config/initializers/session_store.rb
|
139
|
+
- example/asl-admin/config/ldap.yml.sample
|
140
|
+
- example/asl-admin/config/locales/en.yml
|
141
|
+
- example/asl-admin/config/routes.rb
|
142
|
+
- example/asl-admin/log/test.log
|
143
|
+
- example/asl-admin/public/404.html
|
144
|
+
- example/asl-admin/public/422.html
|
145
|
+
- example/asl-admin/public/500.html
|
146
|
+
- example/asl-admin/public/favicon.ico
|
147
|
+
- example/asl-admin/public/images/rails.png
|
148
|
+
- example/asl-admin/public/index.html
|
149
|
+
- example/asl-admin/public/javascripts/application.js
|
150
|
+
- example/asl-admin/public/javascripts/controls.js
|
151
|
+
- example/asl-admin/public/javascripts/dragdrop.js
|
152
|
+
- example/asl-admin/public/javascripts/effects.js
|
153
|
+
- example/asl-admin/public/javascripts/prototype.js
|
154
|
+
- example/asl-admin/public/robots.txt
|
155
|
+
- example/asl-admin/script/about
|
156
|
+
- example/asl-admin/script/console
|
157
|
+
- example/asl-admin/script/dbconsole
|
158
|
+
- example/asl-admin/script/destroy
|
159
|
+
- example/asl-admin/script/generate
|
160
|
+
- example/asl-admin/script/performance/benchmarker
|
161
|
+
- example/asl-admin/script/performance/profiler
|
162
|
+
- example/asl-admin/script/plugin
|
163
|
+
- example/asl-admin/script/runner
|
164
|
+
- example/asl-admin/script/server
|
165
|
+
- example/asl-admin/test/performance/browsing_test.rb
|
166
|
+
- example/asl-admin/test/test_helper.rb
|
111
167
|
- lib/active_samba_ldap.rb
|
112
168
|
- lib/active_samba_ldap/account_entry.rb
|
169
|
+
- lib/active_samba_ldap/active_directory.rb
|
113
170
|
- lib/active_samba_ldap/base.rb
|
114
171
|
- lib/active_samba_ldap/command.rb
|
115
172
|
- lib/active_samba_ldap/computer.rb
|
@@ -125,6 +182,7 @@ files:
|
|
125
182
|
- lib/active_samba_ldap/populate.rb
|
126
183
|
- lib/active_samba_ldap/reloadable.rb
|
127
184
|
- lib/active_samba_ldap/samba_account_entry.rb
|
185
|
+
- lib/active_samba_ldap/samba_computer_account_entry.rb
|
128
186
|
- lib/active_samba_ldap/samba_entry.rb
|
129
187
|
- lib/active_samba_ldap/samba_group_entry.rb
|
130
188
|
- lib/active_samba_ldap/unix_id_pool.rb
|
@@ -133,6 +191,7 @@ files:
|
|
133
191
|
- lib/active_samba_ldap/version.rb
|
134
192
|
- lib/samba/encrypt.rb
|
135
193
|
- misc/rd2html.rb
|
194
|
+
- po/active-samba-ldap.pot
|
136
195
|
- po/ja/active-samba-ldap.po
|
137
196
|
- rails/README
|
138
197
|
- rails/init.rb
|
@@ -145,9 +204,9 @@ files:
|
|
145
204
|
- rails_generators/scaffold_active_samba_ldap/templates/ou.rb
|
146
205
|
- rails_generators/scaffold_active_samba_ldap/templates/samba_controller.rb
|
147
206
|
- rails_generators/scaffold_active_samba_ldap/templates/samba_helper.rb
|
148
|
-
- rails_generators/scaffold_active_samba_ldap/templates/samba_index.
|
149
|
-
- rails_generators/scaffold_active_samba_ldap/templates/samba_populate.
|
150
|
-
- rails_generators/scaffold_active_samba_ldap/templates/samba_purge.
|
207
|
+
- rails_generators/scaffold_active_samba_ldap/templates/samba_index.html.erb
|
208
|
+
- rails_generators/scaffold_active_samba_ldap/templates/samba_populate.html.erb
|
209
|
+
- rails_generators/scaffold_active_samba_ldap/templates/samba_purge.html.erb
|
151
210
|
- rails_generators/scaffold_active_samba_ldap/templates/unix_id_pool.rb
|
152
211
|
- rails_generators/scaffold_active_samba_ldap/templates/user.rb
|
153
212
|
- setup.rb
|
@@ -179,12 +238,14 @@ files:
|
|
179
238
|
- test-unit/lib/test/unit/priority.rb
|
180
239
|
- test-unit/lib/test/unit/runner/console.rb
|
181
240
|
- test-unit/lib/test/unit/runner/emacs.rb
|
241
|
+
- test-unit/lib/test/unit/runner/tap.rb
|
182
242
|
- test-unit/lib/test/unit/testcase.rb
|
183
243
|
- test-unit/lib/test/unit/testresult.rb
|
184
244
|
- test-unit/lib/test/unit/testsuite.rb
|
185
245
|
- test-unit/lib/test/unit/ui/console/outputlevel.rb
|
186
246
|
- test-unit/lib/test/unit/ui/console/testrunner.rb
|
187
247
|
- test-unit/lib/test/unit/ui/emacs/testrunner.rb
|
248
|
+
- test-unit/lib/test/unit/ui/tap/testrunner.rb
|
188
249
|
- test-unit/lib/test/unit/ui/testrunner.rb
|
189
250
|
- test-unit/lib/test/unit/ui/testrunnermediator.rb
|
190
251
|
- test-unit/lib/test/unit/ui/testrunnerutilities.rb
|
@@ -271,7 +332,7 @@ licenses: []
|
|
271
332
|
post_install_message:
|
272
333
|
rdoc_options:
|
273
334
|
- --title
|
274
|
-
- asl's activesambaldap-0.0.
|
335
|
+
- asl's activesambaldap-0.0.8 Documentation
|
275
336
|
- --charset=UTF-8
|
276
337
|
- --main
|
277
338
|
- README.en
|
@@ -292,24 +353,24 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
292
353
|
requirements: []
|
293
354
|
|
294
355
|
rubyforge_project: asl
|
295
|
-
rubygems_version: 1.3.
|
356
|
+
rubygems_version: 1.3.5
|
296
357
|
signing_key:
|
297
358
|
specification_version: 3
|
298
359
|
summary: ActiveSambaLdap is a library and a management tool for Samba + LDAP environment.
|
299
360
|
test_files:
|
300
|
-
- test/
|
301
|
-
- test/
|
361
|
+
- test/test_asl_userdel.rb
|
362
|
+
- test/test_asl_groupmod.rb
|
363
|
+
- test/test_asl_usermod.rb
|
364
|
+
- test/test_entry.rb
|
365
|
+
- test/test_asl_useradd.rb
|
302
366
|
- test/test_password.rb
|
367
|
+
- test/test_asl_groupadd.rb
|
368
|
+
- test/test_group.rb
|
303
369
|
- test/test_asl_passwd.rb
|
304
|
-
- test/
|
370
|
+
- test/test_asl_groupdel.rb
|
305
371
|
- test/test_asl_purge.rb
|
306
|
-
- test/
|
372
|
+
- test/test_user_home_directory.rb
|
373
|
+
- test/test_asl_usershow.rb
|
307
374
|
- test/test_asl_groupshow.rb
|
308
|
-
- test/test_samba_encrypt.rb
|
309
|
-
- test/test_asl_userdel.rb
|
310
375
|
- test/test_asl_populate.rb
|
311
|
-
- test/
|
312
|
-
- test/test_asl_usermod.rb
|
313
|
-
- test/test_asl_useradd.rb
|
314
|
-
- test/test_asl_usershow.rb
|
315
|
-
- test/test_user_home_directory.rb
|
376
|
+
- test/test_samba_encrypt.rb
|